From 9994ca8e217c7b52172fa77d3683307eafb0b730 Mon Sep 17 00:00:00 2001 From: break27 Date: Thu, 28 Aug 2025 19:00:30 +0800 Subject: [PATCH] minor fix --- index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.html b/index.html index a58fb75..cc033a6 100644 --- a/index.html +++ b/index.html @@ -336,8 +336,6 @@ $$$('#group_by', 'change', (e) => { } switch (e.target.value) { - default: - $('#subcategory').options.length = 0; case 'none': $('#subcategory').classList.add('inactive'); $('#subcategory').disabled = true; @@ -348,6 +346,7 @@ $$$('#group_by', 'change', (e) => { $('#subcategory').disabled = false; break; } + $('#subcategory').options.length = 0; for (let [key, value] of Object.entries(results)) { let option = new Option(`${key} (${value})`, key);