From 0cac80d231999de2181ca5500c9ebc71fedcf893 Mon Sep 17 00:00:00 2001 From: delangle Date: Wed, 6 Apr 2022 17:31:40 +0200 Subject: [PATCH] Work --- .../grid/x-data-grid/src/hooks/features/rows/useGridRowsMeta.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/grid/x-data-grid/src/hooks/features/rows/useGridRowsMeta.ts b/packages/grid/x-data-grid/src/hooks/features/rows/useGridRowsMeta.ts index 3efc31ad1925d..c370644901559 100644 --- a/packages/grid/x-data-grid/src/hooks/features/rows/useGridRowsMeta.ts +++ b/packages/grid/x-data-grid/src/hooks/features/rows/useGridRowsMeta.ts @@ -113,7 +113,7 @@ export const useGridRowsMeta = ( }; }); apiRef.current.forceUpdate(); - }, [apiRef, currentPage.rows, currentPage.range?.firstRowIndex, getRowSpacing, getRowHeight]); + }, [apiRef, currentPage.rows, getRowSpacing, getRowHeight]); const getTargetRowHeight = (rowId: GridRowId): number => rowsHeightLookup.current[rowId]?.value || rowHeight;