Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
k-rajat19 committed Oct 26, 2024
1 parent 573132b commit e8ce68f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/x-data-grid/src/components/GridRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,9 @@ const GridRow = React.forwardRef<HTMLDivElement, GridRowProps>(function GridRow(
}

const firstColumnIndex = renderContext.firstColumnIndex;
const lastColumnIndex = !hasVirtualization ? visibleColumns.length : renderContext.lastColumnIndex;
const lastColumnIndex = !hasVirtualization
? visibleColumns.length
: renderContext.lastColumnIndex;
for (let i = firstColumnIndex; i < lastColumnIndex; i += 1) {
const column = visibleColumns[i];
const indexInSection = i - pinnedColumns.left.length;
Expand Down

0 comments on commit e8ce68f

Please sign in to comment.