mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-07-21 11:11:51 +00:00
Fixed headers when exporting visits to CSV
This commit is contained in:
@@ -13,10 +13,7 @@ export class VisitsExporter {
|
||||
return;
|
||||
}
|
||||
|
||||
const [ firstVisit ] = visits;
|
||||
const csv = this.csvjson.toCSV(visits, {
|
||||
headers: Object.keys(firstVisit).join(','),
|
||||
});
|
||||
const csv = this.csvjson.toCSV(visits, { headers: 'key' });
|
||||
|
||||
saveCsv(this.window, csv, filename);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user