Fix input position backfill (#5731)
Some objects do not have position field so they should not be backfilled
This commit is contained in:
@ -0,0 +1,6 @@
|
||||
import { ObjectMetadataInterface } from 'src/engine/metadata-modules/field-metadata/interfaces/object-metadata.interface';
|
||||
|
||||
export const hasPositionField = (objectMetadataItem: ObjectMetadataInterface) =>
|
||||
['opportunity', 'person', 'company'].includes(
|
||||
objectMetadataItem.nameSingular,
|
||||
) || objectMetadataItem.isCustom;
|
||||
Reference in New Issue
Block a user