From 773ee94db4b02e7d6b9567f77496c73a78cc5356 Mon Sep 17 00:00:00 2001 From: Katherine Date: Wed, 9 Apr 2025 09:38:51 +0800 Subject: [PATCH] fix: missing filter params when exporting data after changing pagination (#6633) --- .../plugin-action-export/src/client/useExportAction.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugins/@nocobase/plugin-action-export/src/client/useExportAction.tsx b/packages/plugins/@nocobase/plugin-action-export/src/client/useExportAction.tsx index c7c7ec8139..4bca136a76 100644 --- a/packages/plugins/@nocobase/plugin-action-export/src/client/useExportAction.tsx +++ b/packages/plugins/@nocobase/plugin-action-export/src/client/useExportAction.tsx @@ -37,7 +37,7 @@ export const useExportAction = () => { const { name, title } = useCollection_deprecated(); const { t } = useExportTranslation(); const { modal } = App.useApp(); - const filters = service.params?.[1]?.filters || {}; + const filters = service.params[0]?.filter || {}; const field = useField(); const exportLimit = useMemo(() => { if (appInfo?.data?.exportLimit) { @@ -81,7 +81,7 @@ export const useExportAction = () => { { title: compile(title), appends: service.params[0]?.appends?.join(), - filter: mergeFilter([...Object.values(filters), defaultFilter]), + filter: mergeFilter([filters, defaultFilter]), sort: params?.sort, values: { columns: compile(exportSettings),