From b7ba9e4f7a07cf9a1343642c96d874de1622ccb3 Mon Sep 17 00:00:00 2001 From: Seyi Adebajo Date: Tue, 1 May 2018 11:08:41 -0700 Subject: [PATCH] disregards suggested value of ComplianceFieldIdValue.None if the field already has a tag --- .../app/components/dataset-compliance-rollup-row.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wherehows-web/app/components/dataset-compliance-rollup-row.ts b/wherehows-web/app/components/dataset-compliance-rollup-row.ts index db905f8bb4..40cf159928 100644 --- a/wherehows-web/app/components/dataset-compliance-rollup-row.ts +++ b/wherehows-web/app/components/dataset-compliance-rollup-row.ts @@ -352,7 +352,10 @@ export default class DatasetComplianceRollupRow extends Component.extend({ value: identifierType }); } else { - this.actions.onAddFieldTag.call(this, { identifierType, logicalType }); + // If suggested value is ComplianceFieldIdValue.None then do not add + if (identifierType !== ComplianceFieldIdValue.None) { + this.actions.onAddFieldTag.call(this, { identifierType, logicalType }); + } } } }