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:
Charles Bochet 2024-07-25 13:28:10 +02:00 committed by GitHub
parent d0201e17ac
commit d073ebff43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -127,7 +127,8 @@ export class WorkspaceSyncObjectMetadataIdentifiersService {
const identifierFieldMetadata = objectMetadata.fields.find(
(field) =>
field.standardId ===
standardObjectMetadataMap[objectStandardId][standardIdFieldName],
standardObjectMetadataMap[objectStandardId][standardIdFieldName] &&
field.standardId !== null,
);
if (