fixes issue with urn property being encoded inPOST request payload to save retention
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: ''
});
