mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 07:45:18 +00:00
fix(export): export button remaining in loading state after cancel (#4615)
This commit is contained in:
parent
aae75de70b
commit
b9fda22fb1
@ -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 } =
|
||||
|
Loading…
Reference in New Issue
Block a user