Commit 133e28b9 authored by Michał Woźniak's avatar Michał Woźniak
Browse files

bugfix

parent 85a50d83
Pipeline #215 passed with stage
in 1 second
......@@ -1616,6 +1616,10 @@ let updateChartSettings = () => {
theChart.data.new_datasets.forEach((el, idx)=>{
theChart.data.datasets[idx + 3] = theChart.data.new_datasets[idx]
})
// remove any "extra" datasets
for (var i=0; (theChart.data.new_datasets.length + 3)<theChart.data.datasets.length; i++) {
theChart.data.datasets.pop()
}
// update the chart
theChart.update();
} catch (e) {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment