From 16fd1e3e9c64cd6d756bb72b275a441f6ab7be97 Mon Sep 17 00:00:00 2001 From: Katherine Date: Wed, 17 Jul 2024 17:23:20 +0800 Subject: [PATCH] fix: association field data scope should not persist when switching from select to cascader (#4893) --- .../antd/association-field/InternalCascadeSelect.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/client/src/schema-component/antd/association-field/InternalCascadeSelect.tsx b/packages/core/client/src/schema-component/antd/association-field/InternalCascadeSelect.tsx index 139f2bcce5..a03c545b2d 100644 --- a/packages/core/client/src/schema-component/antd/association-field/InternalCascadeSelect.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/InternalCascadeSelect.tsx @@ -130,7 +130,7 @@ const CascadeSelect = connect((props) => { const response = await resource.list({ pageSize: 200, params: service?.params, - filter: mergeFilter([service?.params?.filter, filter]), + filter: mergeFilter([filter]), tree: !filter.parentId ? true : undefined, }); return response?.data?.data;