Skip to content

Commit 9db56d4

Browse files
authored
Merge pull request #1614 from Jayantparashar10/fix/plotly-smoothing-crash
fix: guard smoothing against traces missing x values in plotlyplot
2 parents 9f763f7 + 9536fca commit 9db56d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

js/panes/PlotPane.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ var PlotPane = (props) => {
183183
smooth_d.showlegend = false;
184184

185185
// turn off smoothing for smoothvalue of 3 or too small arrays
186-
if (windowSize < 5 || smooth_d.x.length <= 5) {
186+
if (windowSize < 5 || !smooth_d.x || smooth_d.x.length <= 5) {
187187
d.opacity = 1.0;
188188

189189
return smooth_d;

0 commit comments

Comments
 (0)