diff --git a/dashboard/src/components/app/Graphs.vue b/dashboard/src/components/app/Graphs.vue index d8f0353ea..8b4ecd47a 100644 --- a/dashboard/src/components/app/Graphs.vue +++ b/dashboard/src/components/app/Graphs.vue @@ -131,7 +131,7 @@ function fillGraph(element, contents, chartPropertyName, divisor, max, format, f if (stepSize) options.scales.y.ticks.stepSize = stepSize; if (graphs[chartPropertyName]) graphs[chartPropertyName].destroy(); - graphs[chartPropertyName] = new Chart(element.getContext('2d'), { type: 'line', data: graphData, options: options }); + if (element) graphs[chartPropertyName] = new Chart(element.getContext('2d'), { type: 'line', data: graphData, options: options }); } async function refresh() {