Skip to content

Commit

Permalink
[DataGrid] Fix row spanning computation of stale rows
Browse files Browse the repository at this point in the history
  • Loading branch information
MBilalShafi committed Oct 9, 2024
1 parent b431b20 commit 841db4e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ export const useGridRowSpanning = (
const rangeToProcess = getUnprocessedRange(
{
firstRowIndex: renderContext.firstRowIndex,
lastRowIndex: renderContext.lastRowIndex - 1,
lastRowIndex: Math.min(renderContext.lastRowIndex - 1, range.lastRowIndex),
},
processedRange.current,
);
Expand Down

0 comments on commit 841db4e

Please sign in to comment.