From 520d3b002917c9e4e163736558b8a5d61b0ff2d6 Mon Sep 17 00:00:00 2001 From: Juned Chhipa Date: Mon, 13 Jan 2025 16:12:36 +0530 Subject: [PATCH] fix #4907; multiple y-axis error when series is empty --- src/modules/Scales.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/Scales.js b/src/modules/Scales.js index 384fb2273..4d43bb28d 100644 --- a/src/modules/Scales.js +++ b/src/modules/Scales.js @@ -619,7 +619,7 @@ export default class Scales { axisSeriesMap.forEach((axisSeries, ai) => { let groupNames = [] axisSeries.forEach((as) => { - let group = cnf.series[as].group + let group = cnf.series[as]?.group if (groupNames.indexOf(group) < 0) { groupNames.push(group) }