Skip to content

Commit

Permalink
fix: 修复 Form Api 根据字段名移除表单项,字段取反了的问题 (vbenjs#4971)
Browse files Browse the repository at this point in the history
  • Loading branch information
gee1k authored Nov 30, 2024
1 parent e3a9397 commit 3c4af23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@core/ui-kit/form-ui/src/form-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3c4af23

Please sign in to comment.