Update main.js

this allows the chart to be shown even if the API response is null
pull/143/head
Valerio Cestrone 2019-02-20 15:31:53 +00:00 committed by GitHub
parent f2dac7bcc8
commit 9f93d9c2d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ async function RenderChart(chart, service, start=0, end=9999999999, group="hour"
}
chart.render();
chart.updateSeries([{
data: chartData
data: chartData || []
}]);
}