diff --git a/packages/core/client/src/block-provider/hooks/index.ts b/packages/core/client/src/block-provider/hooks/index.ts index a6cce56445..9ee1686c85 100644 --- a/packages/core/client/src/block-provider/hooks/index.ts +++ b/packages/core/client/src/block-provider/hooks/index.ts @@ -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; } }