diff --git a/scm-ui/ui-components/src/table/Table.tsx b/scm-ui/ui-components/src/table/Table.tsx index d9e3c80124..98f9d9f038 100644 --- a/scm-ui/ui-components/src/table/Table.tsx +++ b/scm-ui/ui-components/src/table/Table.tsx @@ -66,6 +66,7 @@ const Table: FC = ({ data, sortable, children }) => { }; // @ts-ignore + const { header } = child.props; return ( tableData.length > 0 && ( @@ -78,8 +79,9 @@ const Table: FC = ({ data, sortable, children }) => { onMouseEnter={() => setHoveredColumnIndex(index)} onMouseLeave={() => setHoveredColumnIndex(undefined)} > - {child.props.header} - {isSortable(child) && renderSortIcon(child, ascending, index === lastSortBy || index === hoveredColumnIndex)} + {header} + {isSortable(child) && + renderSortIcon(child, ascending, index === lastSortBy || index === hoveredColumnIndex)} ))}