Fix CSV export filename handling by removing redundant '.csv' extension in download attribute.

This commit is contained in:
Yaro Kasear 2025-07-23 09:41:24 -05:00
parent 9242ce6eab
commit 5e3f211dc0

View file

@ -20,7 +20,7 @@ async function export_csv(ids, csv_route, filename=`${csv_route}_export.csv`) {
const link = document.createElement("a");
link.href = url;
link.download = `${filename}.csv`;
link.download = filename;
link.click();
console.log(url);