fix multiple svg in graph

This commit is contained in:
Sunny Rahul 2022-07-11 23:10:46 +02:00
parent bb9b52babc
commit a8238b1077

View File

@ -128,12 +128,13 @@
{{end}}
// draw graph in hidden // not working
const containerModal = document.getElementById("graph-container-modal")
// retry if the graph is not ready
if (!containerModal) return requestAnimationFrame(render)
// clear the graph in case there is anything within it
containerModal.textContent = ""
// const containerModal = document.getElementById("graph-container-modal")
// // retry if the graph is not ready
// if (!containerModal) return requestAnimationFrame(render)
// // clear the graph in case there is anything within it
// containerModal.textContent = ""
drawGraph(
{{strings.TrimRight "/" .Site.BaseURL}},