Skip to content

Commit

Permalink
Fix NaN on export
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean Dessane committed Oct 4, 2021
1 parent 3c608b1 commit 575fc17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/imex/export/useExportTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ export const useExportTable = <D extends { [key: string]: any } = any>(

return exportOptions.type === 'xls' &&
valueType === 'number' &&
!isNumber(value)
!isNumber(value) &&
value !== null
? Number(value)
: value
})
Expand Down

0 comments on commit 575fc17

Please sign in to comment.