Skip to content

Commit

Permalink
Regression after #5960.
Browse files Browse the repository at this point in the history
  • Loading branch information
TorsteinHonsi committed Nov 16, 2016
1 parent 8f823a5 commit 70b0001
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/parts/Series.js
Expand Up @@ -240,8 +240,10 @@ H.Series = H.seriesType('line', null, { // base series options
}

// Get the index and register the series in the chart. The index is one
// more than the current latest series index (5960).
lastSeries = chartSeries.length && chartSeries[chartSeries.length - 1];
// more than the current latest series index (#5960).
if (chartSeries.length) {
lastSeries = chartSeries[chartSeries.length - 1];
}
series._i = pick(lastSeries && lastSeries._i, -1) + 1;
chartSeries.push(series);

Expand Down

0 comments on commit 70b0001

Please sign in to comment.