Skip to content

Commit

Permalink
Fix excel download issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafasaifee42 committed Mar 7, 2024
1 parent 13585ec commit 704d14e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/DownloadExcel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function ExportExcel(props: Props) {
const wscols = [{ wch: 20 }, { wch: 5 }, { wch: 15 }];

ws['!cols'] = wscols;
XLSX.utils.sheet_add_json(ws, [csvData[0]], {
XLSX.utils.sheet_add_json(ws, csvData, {
header: ['country', 'countryCode', 'year', 'value'],
skipHeader: true,
origin: -1, // ok
Expand Down

0 comments on commit 704d14e

Please sign in to comment.