Skip to content

Commit c6ee205

Browse files
author
Raj Jaiswal
committed
fix: chart sometimes crash on zoom re-render
1 parent 8aa51c1 commit c6ee205

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/chart-api/chart-extra-context.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function computeDerivedState(chart: Highcharts.Chart): ChartExtraContext.Derived
102102
for (const d of s.data) {
103103
// Points with y=null represent the absence of value, there is no need to include them and those
104104
// should have no impact on computed rects or navigation.
105-
if (d.visible && d.y !== null) {
105+
if (d?.visible && d.y !== null) {
106106
seriesX.add(d.x);
107107
allXSet.add(d.x);
108108
addPoint(d);

0 commit comments

Comments
 (0)