From cbaff760205b8869fe861338d72fbc9e8a579b45 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 29 Oct 2026 10:26:24 +0100 Subject: [PATCH] M #-: Protect chartist (#4663) Signed-off-by: dcarracedo --- .../src/modules/components/composed/Charts/Chartist.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/fireedge/src/modules/components/composed/Charts/Chartist.js b/src/fireedge/src/modules/components/composed/Charts/Chartist.js index 38fadbc378..140f2134cb 100644 --- a/src/fireedge/src/modules/components/composed/Charts/Chartist.js +++ b/src/fireedge/src/modules/components/composed/Charts/Chartist.js @@ -245,7 +245,10 @@ const Chartist = ({ () => { if (chartRef.current) { requestAnimationFrame(() => { - const { width, height } = chartRef.current.getBoundingClientRect() + const chart = chartRef.current + if (!chart) return + + const { width, height } = chart.getBoundingClientRect() setChartDimensions({ width: Math.max(width - 16, 50), // Clamping height: Math.max(height - 32, 50), // Clamping