mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-23 20:13:21 +03:00
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:
parent
d0201e17ac
commit
d073ebff43
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user