Skip to content

Commit

Permalink
Merge pull request #1511 from habx/fix/export-header
Browse files Browse the repository at this point in the history
APP-33742: fix(Export): header
  • Loading branch information
habxtech authored Nov 14, 2022
2 parents 5b25c2c + 4f1ef01 commit 8528b79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/imex/imex.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ export const getPath = <D extends object>(column: IMEXColumn<D>) =>
? column.accessor
: column.imex!.path) as string
export const getHeader = <D extends object>(column: IMEXColumn<D>) =>
(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

0 comments on commit 8528b79

Please sign in to comment.