From 575fc178088b183af0de30b6cf2b7e2346f49346 Mon Sep 17 00:00:00 2001 From: Jean Dessane Date: Mon, 4 Oct 2021 17:36:15 +0200 Subject: [PATCH] Fix NaN on export --- src/imex/export/useExportTable.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/imex/export/useExportTable.ts b/src/imex/export/useExportTable.ts index c784798e..04d20f28 100644 --- a/src/imex/export/useExportTable.ts +++ b/src/imex/export/useExportTable.ts @@ -51,7 +51,8 @@ export const useExportTable = ( return exportOptions.type === 'xls' && valueType === 'number' && - !isNumber(value) + !isNumber(value) && + value !== null ? Number(value) : value })