File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -498,7 +498,7 @@ const InternalTable = React.forwardRef(
498498
499499 const colIndexOffset = selectionType ? 1 : 0 ;
500500 const totalColumnsCount = visibleColumnDefinitions . length + colIndexOffset ;
501- const headerRowCount = hierarchicalStructure ?. rows . length ?? 1 ;
501+ const headerRowCount = hierarchicalStructure ?. rows . length || 1 ;
502502
503503 return (
504504 < LinkDefaultVariantContext . Provider value = { { defaultVariant : 'primary' } } >
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ const Thead = React.forwardRef(
142142 } ;
143143
144144 // No grouping - render single row
145- if ( ! hierarchicalStructure || hierarchicalStructure . rows . length == = 1 ) {
145+ if ( ! hierarchicalStructure || hierarchicalStructure . rows . length < = 1 ) {
146146 return (
147147 < thead className = { clsx ( ! hidden && styles [ 'thead-active' ] ) } >
148148 < tr
You can’t perform that action at this time.
0 commit comments