Skip to content

Commit

Permalink
fix(admin-ui): Fix saving entities with custom field relations
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Feb 26, 2024
1 parent 2f51929 commit 80f1f95
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class BaseDataService {
private prepareCustomFields<V>(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);
Expand Down

0 comments on commit 80f1f95

Please sign in to comment.