|
@@ -185,7 +185,7 @@ export class FormApi {
|
|
const fieldSet = new Set(fields);
|
|
const fieldSet = new Set(fields);
|
|
const schema = this.state?.schema ?? [];
|
|
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({
|
|
this.setState({
|
|
schema: filterSchema,
|
|
schema: filterSchema,
|