Skip to content

Commit

Permalink
WebUI: fix checkbox initialization
Browse files Browse the repository at this point in the history
Previously the checkbox had all options checked regardless of the stored
setting.
  • Loading branch information
Chocobo1 committed Nov 26, 2024
1 parent c91b0a0 commit 2af329e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webui/www/private/views/log.html
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2af329e

Please sign in to comment.