Skip to content

Commit 715916d

Browse files
Fix CSV loading state (#788)
1 parent 9dae4d6 commit 715916d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/redux/data/exports/thunks.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export function createSavedExport(query, filters, dates, name) {
6464
payload.exportBody.endTime = dates.endDate;
6565
}
6666

67-
dispatch(loadingData("exportCSVLoading", true));
67+
dispatch(loadingData("exportCSV", true));
6868

6969
try {
7070
const exportResponse = await fetch(exportUrl, {
@@ -96,7 +96,7 @@ export function createSavedExport(query, filters, dates, name) {
9696

9797
await downloadFile(renderedResponse);
9898

99-
dispatch(loadingData("exportCSVLoading", false));
99+
dispatch(loadingData("exportCSV", false));
100100

101101
//dispatch(setIsLoading(false));
102102
//dispatch(addNewSavedExport(result));

0 commit comments

Comments
 (0)