mirror of https://github.com/statping/statping
Update main.js
this allows the chart to be shown even if the API response is nullpull/143/head
parent
f2dac7bcc8
commit
9f93d9c2d4
|
@ -119,7 +119,7 @@ async function RenderChart(chart, service, start=0, end=9999999999, group="hour"
|
|||
}
|
||||
chart.render();
|
||||
chart.updateSeries([{
|
||||
data: chartData
|
||||
data: chartData || []
|
||||
}]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue