From 245c088736e0d3c707ad4fe47c46fb5bf1e9d0aa Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Fri, 13 Sep 2024 01:09:42 +0200 Subject: [PATCH] [core][charts] Remove dead code --- .../src/ResponsiveChartContainer/useChartContainerDimensions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/x-charts/src/ResponsiveChartContainer/useChartContainerDimensions.ts b/packages/x-charts/src/ResponsiveChartContainer/useChartContainerDimensions.ts index 9013bcca9a2e..c256d2167b8e 100644 --- a/packages/x-charts/src/ResponsiveChartContainer/useChartContainerDimensions.ts +++ b/packages/x-charts/src/ResponsiveChartContainer/useChartContainerDimensions.ts @@ -58,7 +58,7 @@ export const useChartContainerDimensions = (inWidth?: number, inHeight?: number) return () => { if (animationFrame) { - window.cancelAnimationFrame(animationFrame); + cancelAnimationFrame(animationFrame); } if (elementToObserve) {