From 46294692ddf10f4b919eff289d92c6ba7ef8ceef Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Tue, 4 Jul 2023 17:17:51 +0800 Subject: [PATCH] fix: error opening when data scope is null (#2178) * fix: error opening when data scope is null * fix: error opening when data scope is null --- .../client/src/schema-component/antd/filter/FilterItems.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/client/src/schema-component/antd/filter/FilterItems.tsx b/packages/core/client/src/schema-component/antd/filter/FilterItems.tsx index 8fbd15c1f..b9b489f8e 100644 --- a/packages/core/client/src/schema-component/antd/filter/FilterItems.tsx +++ b/packages/core/client/src/schema-component/antd/filter/FilterItems.tsx @@ -10,7 +10,7 @@ export const FilterItems = observer( const field = useField(); return (
- {field?.value?.map((item, index) => { + {field?.value?.filter(Boolean).map((item, index) => { return ( field.remove(index)}>