Skip to content

Commit

Permalink
#1000 - Update export from .tsv to .csv
Browse files Browse the repository at this point in the history
  • Loading branch information
allennatang authored and tektaxi committed Nov 15, 2024
1 parent dda006d commit a6170cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/features/Search/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ class SearchContainer extends React.Component<{}, ISearchState> {
headers.forEach((header) => {
tempHeaders.push(header.label);
});
const csvData: string[] = [tempHeaders.join('\t')];
const csvData: string[] = [tempHeaders.join(',')];
this.filter().forEach((result) => {
if (result.selected) {
const row: string[] = [];
Expand All @@ -286,10 +286,10 @@ class SearchContainer extends React.Component<{}, ISearchState> {
}
row.push(value);
});
csvData.push(row.join('\t'));
csvData.push(row.join(','));
}
});
fileDownload(csvData.join('\n'), 'hackerData.tsv', 'text/tsv');
fileDownload(csvData.join('\n'), 'hackerData.csv', 'text/csv');
}

private async triggerSearch(): Promise<void> {
Expand Down

0 comments on commit a6170cd

Please sign in to comment.