fixed bug where loading a config would not refresh rule list

This commit is contained in:
maskedmonkyman 2022-03-22 13:07:42 -07:00
parent 1785a832a6
commit b1c80d1266

View File

@ -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)