Skip to content

Commit

Permalink
Merge pull request #1153 from habx/fix/APP-24283
Browse files Browse the repository at this point in the history
APP-24283: Fix export
  • Loading branch information
habxtech authored Oct 12, 2021
2 parents a0d35bc + 4fb4322 commit 75d6e13
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 75d6e13

Please sign in to comment.