diff --git a/htdocs/js/GraphTool/graphtool.js b/htdocs/js/GraphTool/graphtool.js index 32b2735f79..3f3d4ffe7b 100644 --- a/htdocs/js/GraphTool/graphtool.js +++ b/htdocs/js/GraphTool/graphtool.js @@ -9,6 +9,7 @@ window.graphTool = (containerId, options) => { const gt = {}; gt.graphContainer = document.getElementById(containerId); + if (!gt.graphContainer) return; if (gt.graphContainer.offsetWidth === 0) { setTimeout(() => window.graphTool(containerId, options), 100); return;