Skip to content

Commit e79b0e2

Browse files
committed
fix: papaparse import
1 parent 33636f1 commit e79b0e2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/runtime/utils/io.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import saveAs from 'file-saver'
2-
import { unparse } from 'papaparse'
2+
import Papa from 'papaparse'
33

44
export function downloadCSV(data: unknown[], filename = 'export') {
55
// Convert to CSV
6-
const csv = unparse(data)
6+
const csv = Papa.unparse(data)
77

88
// Download File
99
const blob = new Blob([csv], {

0 commit comments

Comments
 (0)