Prevent field with null standardId to be considered as field identifier (#6407)
Otherwise, any custom field will be considered as image/label identifier by the sync-metadata scripts
This commit is contained in:
@ -127,7 +127,8 @@ export class WorkspaceSyncObjectMetadataIdentifiersService {
|
|||||||
const identifierFieldMetadata = objectMetadata.fields.find(
|
const identifierFieldMetadata = objectMetadata.fields.find(
|
||||||
(field) =>
|
(field) =>
|
||||||
field.standardId ===
|
field.standardId ===
|
||||||
standardObjectMetadataMap[objectStandardId][standardIdFieldName],
|
standardObjectMetadataMap[objectStandardId][standardIdFieldName] &&
|
||||||
|
field.standardId !== null,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
|||||||
Reference in New Issue
Block a user