Skip to content

Commit

Permalink
fix: set target and references in custom fields
Browse files Browse the repository at this point in the history
  • Loading branch information
18alantom committed Aug 22, 2023
1 parent 3579b23 commit 29a2ace
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions schemas/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,11 +336,11 @@ function getFieldMapFromRawCustomFields(
}

if (typeof target === 'string') {
(field as TargetField).target === 'target';
(field as TargetField).target = target;
}

if (typeof references === 'string') {
(field as DynamicLinkField).references === 'references';
(field as DynamicLinkField).references = references;
}

map[parent].push(field);
Expand Down

0 comments on commit 29a2ace

Please sign in to comment.