diff --git a/src/webui/www/private/views/log.html b/src/webui/www/private/views/log.html index 6590f0ef5d94..2e2ff8510a0e 100644 --- a/src/webui/www/private/views/log.html +++ b/src/webui/www/private/views/log.html @@ -188,8 +188,10 @@ let selectedLogLevels = JSON.parse(LocalPreferences.get("qbt_selected_log_levels")) || ["1", "2", "4", "8"]; const init = () => { - for (const option of $("logLevelSelect").options) - option.setAttribute("selected", selectedLogLevels.includes(option.value)); + for (const option of $("logLevelSelect").options) { + if (selectedLogLevels.includes(option.value)) // set `false` will break the UI + option.setAttribute("selected", true); + } selectBox = new vanillaSelectBox("#logLevelSelect", { maxHeight: 200,