From 412a7e8f720b7fbe11f93f2722e37f44a2810f32 Mon Sep 17 00:00:00 2001 From: Jean Dessane Date: Mon, 14 Nov 2022 17:29:56 +0100 Subject: [PATCH] fix(Export): header --- src/imex/imex.utils.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/imex/imex.utils.ts b/src/imex/imex.utils.ts index e9cce04a..88f6b3ec 100644 --- a/src/imex/imex.utils.ts +++ b/src/imex/imex.utils.ts @@ -5,6 +5,6 @@ export const getPath = (column: IMEXColumn) => ? column.accessor : column.imex!.path) as string export const getHeader = (column: IMEXColumn) => - (typeof column.Header === 'string' - ? column.Header - : column.imex!.header) as string + (column.imex!.header || typeof column.Header !== 'string' + ? column.imex!.header + : column.Header) as string