Fix CSV export filename handling by removing redundant '.csv' extension in download attribute.
This commit is contained in:
parent
9242ce6eab
commit
5e3f211dc0
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ async function export_csv(ids, csv_route, filename=`${csv_route}_export.csv`) {
|
||||||
|
|
||||||
const link = document.createElement("a");
|
const link = document.createElement("a");
|
||||||
link.href = url;
|
link.href = url;
|
||||||
link.download = `${filename}.csv`;
|
link.download = filename;
|
||||||
link.click();
|
link.click();
|
||||||
|
|
||||||
console.log(url);
|
console.log(url);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue