Skip to content

Commit

Permalink
Fix export
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean Dessane committed Oct 12, 2021
1 parent 1a6ab5a commit f85a488
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/imex/export/useExportTable.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { get, isNumber } from 'lodash'
import { get, isFinite } from 'lodash'
import * as React from 'react'

import { getImexColumns } from '../getImexColumns'
Expand Down Expand Up @@ -51,8 +51,8 @@ export const useExportTable = <D extends { [key: string]: any } = any>(

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

0 comments on commit f85a488

Please sign in to comment.