diff --git a/src/Header/HeaderRow.tsx b/src/Header/HeaderRow.tsx index ae5757a5b..9a84c7ba2 100644 --- a/src/Header/HeaderRow.tsx +++ b/src/Header/HeaderRow.tsx @@ -54,7 +54,7 @@ const HeaderRow = (props: RowProps) => { const { column, colStart, colEnd, colSpan } = cell; const fixedInfo = getCellFixedInfo(colStart, colEnd, flattenColumns, stickyOffsets); - const additionalProps: React.HTMLAttributes = column?.onHeaderCell(column); + const additionalProps: React.HTMLAttributes = column?.onHeaderCell?.(column) || {}; return (