fix: 修复 Form Api 根据字段名移除表单项,字段取反了的问题 (#4971)

pull/56/MERGE
Svend 2024-11-30 10:58:17 +08:00 committed by GitHub
parent e3a93970f4
commit 3c4af23edf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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,