mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 15:26:02 +00:00
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)) {
|
||||
const collectionField = getField(key);
|
||||
if (filterByTk) {
|
||||
if (['subTable', 'o2m'].includes(collectionField.interface)) {
|
||||
values[key] = form.values[key];
|
||||
if (field.added && !field.added.has(key)) {
|
||||
continue;
|
||||
}
|
||||
if (field.added && !field.added.has(key)) {
|
||||
if (['subTable', 'o2m'].includes(collectionField.interface)) {
|
||||
values[key] = form.values[key];
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user