WebUI: fix checkbox initialization

Previously the checkbox had all options checked regardless of the stored
setting.
This commit is contained in:
Chocobo1 2024-11-26 02:14:07 +08:00
parent ef5506321a
commit 83b0dd3026
No known key found for this signature in database
GPG key ID: 210D9C873253A68C

View file

@ -189,7 +189,7 @@
const init = () => {
for (const option of $("logLevelSelect").options)
option.setAttribute("selected", selectedLogLevels.includes(option.value));
option.toggleAttribute("selected", selectedLogLevels.includes(option.value));
selectBox = new vanillaSelectBox("#logLevelSelect", {
maxHeight: 200,