Skip to content

Commit

Permalink
[DataGrid] Avoid row spanning computation of outdated rows (mui#14902)
Browse files Browse the repository at this point in the history
  • Loading branch information
MBilalShafi authored Oct 10, 2024
1 parent 010f526 commit 69dc394
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 69dc394

Please sign in to comment.