Skip to content

Commit

Permalink
Merge pull request #143 from v4lerio/patch-1
Browse files Browse the repository at this point in the history
Update main.js
  • Loading branch information
hunterlong committed Oct 15, 2019
2 parents 37ed995 + ef0d959 commit 4c7e360
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions source/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,9 @@ async function RenderChart(chart, service, start=0, end=9999999999, group="hour"
chartData = await ChartLatency(service, start, end, "minute", retry);
}
chart.render();
if (chartData) {
chart.updateSeries([{
data: chartData
}]);
}
chart.updateSeries([{
data: chartData || []
}]);
}


Expand Down

0 comments on commit 4c7e360

Please sign in to comment.