From 3c4af23edf5195e5617b49c7b93d05f113247cde Mon Sep 17 00:00:00 2001 From: Svend Date: Sat, 30 Nov 2024 10:58:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20Form=20Api=20?= =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E5=AD=97=E6=AE=B5=E5=90=8D=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E9=A1=B9=EF=BC=8C=E5=AD=97=E6=AE=B5=E5=8F=96?= =?UTF-8?q?=E5=8F=8D=E4=BA=86=E7=9A=84=E9=97=AE=E9=A2=98=20(#4971)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/@core/ui-kit/form-ui/src/form-api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,