Skip to content

Commit de3f351

Browse files
ryugarajRaj Jaiswal
andauthored
fix: handle additional undefined series (#142)
Co-authored-by: Raj Jaiswal <[email protected]>
1 parent 954ad91 commit de3f351

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export function getChartLegendItems(chart: Highcharts.Chart): readonly LegendIte
159159
}
160160
};
161161
const addPointItem = (point: Highcharts.Point, isSecondary: boolean) => {
162-
if (point.series.type === "pie") {
162+
if (point?.series?.type === "pie") {
163163
legendItems.push({
164164
id: getPointId(point),
165165
name: point.name,

0 commit comments

Comments
 (0)