From b1c80d12669f76180b16958045f49adc89052930 Mon Sep 17 00:00:00 2001 From: maskedmonkyman Date: Tue, 22 Mar 2022 13:07:42 -0700 Subject: [PATCH] fixed bug where loading a config would not refresh rule list --- config_tool.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config_tool.html b/config_tool.html index f8994f6..ee42c90 100644 --- a/config_tool.html +++ b/config_tool.html @@ -328,6 +328,8 @@ load_button.onchange = () => { let reader = new FileReader(); + rules_list.innerHTML = ""; + modes_list.innerHTML = ""; reader.addEventListener("load", (event) => { let vote_rules = JSON.parse(event.target.result); for (let mode of vote_rules.modes)