From f85a4887125a509e385a07022a4a36c9a5aecf44 Mon Sep 17 00:00:00 2001 From: Jean Dessane Date: Tue, 12 Oct 2021 14:26:06 +0200 Subject: [PATCH] Fix export --- src/imex/export/useExportTable.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/imex/export/useExportTable.ts b/src/imex/export/useExportTable.ts index 04d20f28..61b86be6 100644 --- a/src/imex/export/useExportTable.ts +++ b/src/imex/export/useExportTable.ts @@ -1,4 +1,4 @@ -import { get, isNumber } from 'lodash' +import { get, isFinite } from 'lodash' import * as React from 'react' import { getImexColumns } from '../getImexColumns' @@ -51,8 +51,8 @@ export const useExportTable = ( return exportOptions.type === 'xls' && valueType === 'number' && - !isNumber(value) && - value !== null + !isFinite(value) && + value != null ? Number(value) : value })