fix(client): update only fields in the form
This commit is contained in:
parent
9314bcd9f2
commit
4481109b1e
@ -70,11 +70,11 @@ function getFormValues(filterByTk, field, form, fieldNames, getField, resource)
|
|||||||
if (fieldNames.includes(key)) {
|
if (fieldNames.includes(key)) {
|
||||||
const collectionField = getField(key);
|
const collectionField = getField(key);
|
||||||
if (filterByTk) {
|
if (filterByTk) {
|
||||||
if (['subTable', 'o2m'].includes(collectionField.interface)) {
|
if (field.added && !field.added.has(key)) {
|
||||||
values[key] = form.values[key];
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (field.added && !field.added.has(key)) {
|
if (['subTable', 'o2m'].includes(collectionField.interface)) {
|
||||||
|
values[key] = form.values[key];
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user