From a0b0d2d45fd47f50058b864fc15a61ffe6ca52b7 Mon Sep 17 00:00:00 2001 From: Raj Jaiswal Date: Tue, 23 Dec 2025 15:15:52 +0000 Subject: [PATCH] fix: handle additional undefined series --- src/core/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/utils.ts b/src/core/utils.ts index fd474761..c934990f 100644 --- a/src/core/utils.ts +++ b/src/core/utils.ts @@ -159,7 +159,7 @@ export function getChartLegendItems(chart: Highcharts.Chart): readonly LegendIte } }; const addPointItem = (point: Highcharts.Point, isSecondary: boolean) => { - if (point.series.type === "pie") { + if (point?.series?.type === "pie") { legendItems.push({ id: getPointId(point), name: point.name,