diff --git a/packages/utils/src/helpers/helpers.ts b/packages/utils/src/helpers/helpers.ts index 6e570a936..503396e51 100644 --- a/packages/utils/src/helpers/helpers.ts +++ b/packages/utils/src/helpers/helpers.ts @@ -11,7 +11,7 @@ export function mergeArraysByKey(arrays: Record[][], key = 'id' return Object.values(mergedObject); } -export function downloadFile(data: unknown, filename = `${new Date().toISOString()}`, format = CSV_TYPE) { +export function downloadFile(data: unknown, filename = `${new Date().toISOString()}`, format = 'csv') { const type = format === 'json' ? JSON_TYPE : CSV_TYPE; const blob = new Blob([data as unknown as BlobPart], { type }); const link = document.createElement('a');