fix: association field data scope should not persist when switching from select to cascader (#4893)
Some checks are pending
auto-merge / push-commit (push) Waiting to run
Build Docker Image / build-and-push (push) Waiting to run
Build Pro Image / build-and-push (push) Waiting to run
deploy client docs / Build (push) Waiting to run
E2E / Build (push) Waiting to run
E2E / Core and plugins (push) Blocked by required conditions
E2E / plugin-workflow (push) Blocked by required conditions
E2E / plugin-workflow-approval (push) Blocked by required conditions
E2E / plugin-data-source-main (push) Blocked by required conditions
E2E / Comment on PR (push) Blocked by required conditions
NocoBase FrontEnd Test / frontend-test (18) (push) Waiting to run

This commit is contained in:
Katherine 2024-07-17 17:23:20 +08:00 committed by GitHub
parent c903e93229
commit 16fd1e3e9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -130,7 +130,7 @@ const CascadeSelect = connect((props) => {
const response = await resource.list({ const response = await resource.list({
pageSize: 200, pageSize: 200,
params: service?.params, params: service?.params,
filter: mergeFilter([service?.params?.filter, filter]), filter: mergeFilter([filter]),
tree: !filter.parentId ? true : undefined, tree: !filter.parentId ? true : undefined,
}); });
return response?.data?.data; return response?.data?.data;