Netfan
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
2 deletions
-
packages/@core/ui-kit/form-ui/src/form-api.ts
|
|
@ -404,9 +404,8 @@ export class FormApi { |
|
|
const deletedSchema = prevSchema.filter( |
|
|
const deletedSchema = prevSchema.filter( |
|
|
(item) => !currentFields.has(item.fieldName), |
|
|
(item) => !currentFields.has(item.fieldName), |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
for (const schema of deletedSchema) { |
|
|
for (const schema of deletedSchema) { |
|
|
this.form?.setFieldValue(schema.fieldName, undefined); |
|
|
this.form?.setFieldValue?.(schema.fieldName, undefined); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|