Skip to content

Commit

Permalink
chore(fao-deforestation): improve csv filename when try/catch got an …
Browse files Browse the repository at this point in the history
…error
  • Loading branch information
willian-viana committed Nov 30, 2023
1 parent a812b14 commit 9f6daf7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ class WidgetDownloadButton extends PureComponent {
filename = filename.concat('.csv');
}
} catch (error) {
filename = `file ${index + 1}.csv`;
filename = `error.csv`;
}

zip.file(filename, urlToPromise(url), { binary: true });
Expand Down

0 comments on commit 9f6daf7

Please sign in to comment.