fixes issue with updating field logical type on compliance

This commit is contained in:
Seyi Adebajo 2017-05-19 11:57:46 -07:00 committed by Mars Lan
parent ddc171e424
commit aa7d06a277

View File

@ -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 });
},