2
0
mirror of https://github.com/frappe/books.git synced 2024-11-09 23:30:56 +00:00

fix: set target and references in custom fields

This commit is contained in:
18alantom 2023-08-22 12:15:12 +05:30
parent 3579b23080
commit 29a2aced94

View File

@ -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);