diff --git a/packages/admin-ui/src/lib/core/src/data/providers/base-data.service.ts b/packages/admin-ui/src/lib/core/src/data/providers/base-data.service.ts index 6963de02df..81a30cb36e 100644 --- a/packages/admin-ui/src/lib/core/src/data/providers/base-data.service.ts +++ b/packages/admin-ui/src/lib/core/src/data/providers/base-data.service.ts @@ -66,7 +66,7 @@ export class BaseDataService { private prepareCustomFields(mutation: DocumentNode, variables: V): V { const entity = isEntityCreateOrUpdateMutation(mutation); if (entity) { - const customFieldConfig = this.customFields[entity]; + const customFieldConfig = this.customFields.get(entity); if (variables && customFieldConfig) { let variablesClone = simpleDeepClone(variables as any); variablesClone = removeReadonlyCustomFields(variablesClone, customFieldConfig);