fix csv export (#466)

* style: cleanup formatting

* fix: prevent issues with csv export

* chore: update test snapshots
This commit is contained in:
Carlos Valente
2023-07-23 15:06:25 +02:00
committed by GitHub
parent 3603b836f6
commit bb1eb2838f
4 changed files with 13 additions and 8 deletions
@@ -108,7 +108,6 @@ export const makeTable = (headerData: EventData, rundown: OntimeRundown, userFie
* @return {string}
*/
export const makeCSV = (arrayOfArrays: string[][]) => {
const csvData = 'data:text/csv;charset=utf-8,';
const stringifiedData = stringify(arrayOfArrays);
return csvData + stringifiedData;
return stringifiedData;
};