diff --git a/wled00/data/index.js b/wled00/data/index.js index 1ce0f22a..c712118d 100644 --- a/wled00/data/index.js +++ b/wled00/data/index.js @@ -632,7 +632,8 @@ function populateSegments(s) for (var i = 0; i <= lSeg; i++) { updateLen(i); updateTrail(d.getElementById(`seg${i}bri`)); - d.getElementById(`segr${i}`).style.display = "none"; + let segr = d.getElementById(`segr${i}`); + if (segr) segr.style.display = "none"; } if (segCount < 2) d.getElementById(`segd${lSeg}`).style.display = "none"; if (!noNewSegs && (cfg.comp.seglen?parseInt(d.getElementById(`seg${lSeg}s`).value):0)+parseInt(d.getElementById(`seg${lSeg}e`).value) 1) {