From d570c6d29eeb28b3d99c1100ca0f2e439a107b8e Mon Sep 17 00:00:00 2001 From: Andrew Cherniavskii Date: Tue, 31 Dec 2024 13:22:53 +0100 Subject: [PATCH] [DataGrid] Fix TS error (#16046) --- .../src/components/GridColumnMenuAggregationItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/x-data-grid-premium/src/components/GridColumnMenuAggregationItem.tsx b/packages/x-data-grid-premium/src/components/GridColumnMenuAggregationItem.tsx index 3c952d5c36ee6..522edfd53b492 100644 --- a/packages/x-data-grid-premium/src/components/GridColumnMenuAggregationItem.tsx +++ b/packages/x-data-grid-premium/src/components/GridColumnMenuAggregationItem.tsx @@ -18,7 +18,7 @@ import { GridAggregationModel } from '../hooks/features/aggregation/gridAggregat function GridColumnMenuAggregationItem(props: GridColumnMenuItemProps) { const { colDef } = props; const apiRef = useGridApiContext(); - const inputRef = React.useRef(); + const inputRef = React.useRef(null); const rootProps = useGridRootProps(); const id = useId(); const aggregationModel = useGridSelector(apiRef, gridAggregationModelSelector);