File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
packages/main/src/components/AnalyticalTable Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,9 @@ export const ColumnHeaderContainer = (props) => {
67
67
< div { ...headerProps } role = "rowgroup" style = { { width : `${ columnVirtualizer . totalSize } px` } } >
68
68
{ columnVirtualizer . virtualItems . map ( ( virtualColumn : VirtualItem ) => {
69
69
const column = headerGroup . headers [ virtualColumn . index ] ;
70
+ if ( ! column ) {
71
+ return null ;
72
+ }
70
73
const isLastColumn = ! column . disableResizing && virtualColumn . index + 1 === headerGroup . headers . length ;
71
74
return (
72
75
< >
Original file line number Diff line number Diff line change @@ -179,6 +179,9 @@ export const VirtualTableBody = (props: VirtualTableBodyProps) => {
179
179
>
180
180
{ columnVirtualizer . virtualItems . map ( ( virtualColumn ) => {
181
181
const cell = row . cells [ virtualColumn . index ] ;
182
+ if ( ! cell ) {
183
+ return null ;
184
+ }
182
185
const cellProps = cell . getCellProps ( ) ;
183
186
if ( row . original ?. emptyRow ) {
184
187
return < div { ...cellProps } /> ;
You can’t perform that action at this time.
0 commit comments