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