hotfix: excluding sum filters works again

This commit is contained in:
fin444 2022-09-17 17:07:56 -04:00
parent 087e9a6698
commit 85d84f6746

View file

@ -218,8 +218,12 @@ function do_item_search() {
} }
let filter_name = translate_mappings[raw_name]; let filter_name = translate_mappings[raw_name];
if (filter_name === undefined) { if (filter_name === undefined) {
document.getElementById("summary").innerHTML = "Error: The excluded filter \"" + exclude.input_elem.value + "\" is not recognized"; filter_name = special_mappings[raw_name];
return; if (filter_name === undefined) {
document.getElementById("summary").innerHTML = "Error: The excluded filter \"" + exclude.input_elem.value + "\" is not recognized";
return;
}
filter_name = "(" + filter_name + ")";
} }
queries.push("f:" + filter_name + "=0"); queries.push("f:" + filter_name + "=0");
} }