Skip to content

Commit

Permalink
Merge pull request #1141 from habx/fix/APP-23986
Browse files Browse the repository at this point in the history
APP-23986: Fix NaN on export
  • Loading branch information
habx-auto-merge[bot] authored Oct 4, 2021
2 parents 3c608b1 + 575fc17 commit 08ca0d1
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 08ca0d1

Please sign in to comment.