From b9fda22fb129bcae2487ebe58ab3c13c3d092117 Mon Sep 17 00:00:00 2001 From: Katherine Date: Tue, 11 Jun 2024 11:35:53 +0800 Subject: [PATCH] fix(export): export button remaining in loading state after cancel (#4615) --- .../plugin-action-export/src/client/useExportAction.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 4886094452..d2f8d1c149 100644 --- a/packages/plugins/@nocobase/plugin-action-export/src/client/useExportAction.tsx +++ b/packages/plugins/@nocobase/plugin-action-export/src/client/useExportAction.tsx @@ -45,7 +45,6 @@ export const useExportAction = () => { return { async onClick() { field.data = field.data || {}; - field.data.loading = true; const confirmed = await modal.confirm({ title: t('Export'), content: t('Export warning', { limit: exportLimit }), @@ -54,6 +53,7 @@ export const useExportAction = () => { if (!confirmed) { return; } + field.data.loading = true; const { exportSettings } = lodash.cloneDeep(actionSchema?.['x-action-settings'] ?? {}); exportSettings.forEach((es) => { const { uiSchema, interface: fieldInterface } =