diff --git a/Plan/common/src/main/resources/assets/plan/web/js/graphs.js b/Plan/common/src/main/resources/assets/plan/web/js/graphs.js index 080c7b1ed..7344dc9a2 100644 --- a/Plan/common/src/main/resources/assets/plan/web/js/graphs.js +++ b/Plan/common/src/main/resources/assets/plan/web/js/graphs.js @@ -711,7 +711,13 @@ function worldPie(id, worldSeries, gmSeries) { } function updateGraphs() { - for (let graph of graphs) { + const scrollbar = {...Highcharts.theme.scrollbar}; + graphs.forEach((graph, index, array) => { + if (Object.keys(graph).length === 0) { + array.splice(index, 1); + return; + } + Highcharts.theme["scrollbar"] = {...scrollbar}; graph.update(Highcharts.theme); - } -} \ No newline at end of file + }) +}