Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/features/Search/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ class SearchContainer extends React.Component<{}, ISearchState> {
headers.forEach((header) => {
tempHeaders.push(header.label);
});
const csvData: string[] = [tempHeaders.join(',')];
const csvData: string[] = [tempHeaders.join('\t')]; // actually in tsv format
this.filter().forEach((result) => {
if (result.selected) {
const row: string[] = [];
Expand All @@ -294,10 +294,10 @@ class SearchContainer extends React.Component<{}, ISearchState> {
}
row.push(value);
});
csvData.push(row.join(','));
csvData.push(row.join('\t'));
}
});
fileDownload(csvData.join('\n'), 'hackerData.csv', 'text/csv');
fileDownload(csvData.join('\n'), 'hackerData.tsv', 'text/tsv');
}

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