Skip to content

Commit

Permalink
fix: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaotiandada authored Oct 16, 2023
1 parent 31c5712 commit 21cf966
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useAntdResizableHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ function useAntdResizableHeader<ColumnType extends ColumnOriginType<ColumnType>>
children: col?.children?.length ? getColumns(col.children) : undefined,
onHeaderCell: (column: ColumnType) => {
return {
dataindex: column.dataIndex,
dataIndex: column.dataIndex,
title: typeof col?.title === 'string' ? col?.title : '',
width: cache ? widthCache.current?.get(column[GETKEY] ?? '')?.width || column?.width : column?.width,
resizable: column.resizable,
Expand Down

0 comments on commit 21cf966

Please sign in to comment.