mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-23 16:48:12 +00:00
fixes issue with updating field logical type on compliance
This commit is contained in:
parent
ddc171e424
commit
aa7d06a277
@ -227,9 +227,7 @@ export default Component.extend({
|
||||
*/
|
||||
const getAttributeOnField = (attribute, fieldName) => {
|
||||
const complianceEntities = get(this, policyComplianceEntitiesKey) || [];
|
||||
const sourceField = complianceEntities.find(
|
||||
({ identifierField }) => identifierField === fieldName
|
||||
);
|
||||
const sourceField = complianceEntities.find(({ identifierField }) => identifierField === fieldName);
|
||||
return sourceField ? sourceField[attribute] : null;
|
||||
};
|
||||
|
||||
@ -403,10 +401,10 @@ export default Component.extend({
|
||||
},
|
||||
{ value: fieldIdentifierTypes.none.value }
|
||||
);
|
||||
} else {
|
||||
set(sourceIdentifierField, 'logicalType', logicalType);
|
||||
}
|
||||
|
||||
set(sourceIdentifierField, 'logicalType', logicalType);
|
||||
|
||||
return this.setDefaultClassification({ identifierField }, { value: logicalType });
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user