From dd374df0a4c4fb7715d1f604c01b7a59d1956f18 Mon Sep 17 00:00:00 2001 From: Seyi Adebajo Date: Tue, 22 May 2018 15:25:11 -0700 Subject: [PATCH] fixes issue with urn property being encoded inPOST request payload to save retention --- wherehows-web/app/constants/datasets/retention.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wherehows-web/app/constants/datasets/retention.ts b/wherehows-web/app/constants/datasets/retention.ts index f3e937d46c..10649d184d 100644 --- a/wherehows-web/app/constants/datasets/retention.ts +++ b/wherehows-web/app/constants/datasets/retention.ts @@ -1,4 +1,5 @@ import { IDatasetRetention } from 'wherehows-web/typings/api/datasets/retention'; +import { decodeUrn } from 'wherehows-web/utils/validators/urn'; /** * 'News' a IDatasetRetention instance with the provided dataset urn @@ -6,7 +7,7 @@ import { IDatasetRetention } from 'wherehows-web/typings/api/datasets/retention' * @returns {IDatasetRetention} */ const retentionObjectFactory = (urn: string): IDatasetRetention => ({ - datasetUrn: urn, + datasetUrn: decodeUrn(urn), purgeNote: '', purgeType: '' });