Skip to content

Commit 84eb1b6

Browse files
fix: add optional chaining to onHeaderCell call in HeaderRow.tsx (#1340)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 21ff7b7 commit 84eb1b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Header/HeaderRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const HeaderRow = <RecordType extends any>(props: RowProps<RecordType>) => {
5454
const { column, colStart, colEnd, colSpan } = cell;
5555
const fixedInfo = getCellFixedInfo(colStart, colEnd, flattenColumns, stickyOffsets);
5656

57-
const additionalProps: React.HTMLAttributes<HTMLElement> = column?.onHeaderCell(column);
57+
const additionalProps: React.HTMLAttributes<HTMLElement> = column?.onHeaderCell?.(column) || {};
5858

5959
return (
6060
<Cell

0 commit comments

Comments
 (0)