diff --git a/packages/@core/ui-kit/form-ui/src/form-api.ts b/packages/@core/ui-kit/form-ui/src/form-api.ts index 07de5d75..08318f3c 100644 --- a/packages/@core/ui-kit/form-ui/src/form-api.ts +++ b/packages/@core/ui-kit/form-ui/src/form-api.ts @@ -185,7 +185,7 @@ export class FormApi { const fieldSet = new Set(fields); const schema = this.state?.schema ?? []; - const filterSchema = schema.filter((item) => fieldSet.has(item.fieldName)); + const filterSchema = schema.filter((item) => !fieldSet.has(item.fieldName)); this.setState({ schema: filterSchema,