Skip to content

Commit

Permalink
fix: render raw column key as header when label isn't provided #4
Browse files Browse the repository at this point in the history
  • Loading branch information
ChronicStone committed Apr 28, 2024
1 parent d0b13c5 commit 7d7b575
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"vitest": "^1.0.0-beta.6"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
"pre-commit": "bun run lint-staged"
},
"lint-staged": {
"*": ""
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function buildSheetConfig(sheets: Array<SheetConfig>) {
.flat()
.map((column) => {
return {
label: column?.label ?? formatKey(column.columnKey),
label: column?.label ?? column.columnKey,
value: (row: GenericObject, index: number): CellValue => {
const value = typeof column.key === 'string'
? getPropertyFromPath(row, column.key)
Expand Down

0 comments on commit 7d7b575

Please sign in to comment.