From 3ea8d901cbd5eae6ce2bcd40de4d0c976a6a34c3 Mon Sep 17 00:00:00 2001 From: fin444 Date: Fri, 9 Sep 2022 17:01:08 -0400 Subject: [PATCH] fix using filters to exclude ids from search --- js/items.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/items.js b/js/items.js index 34d3758..c26ad80 100644 --- a/js/items.js +++ b/js/items.js @@ -178,7 +178,7 @@ function do_item_search() { if (min > max) { continue; // invalid range } - let zero_in_min_max = (isNaN(min) || min <= 0) && (isNaN(max) || max >= 0); + let zero_in_min_max = (isNaN(min) || min < 0) && (isNaN(max) || max > 0); let raw_name = filter.input_elem.value; let filter_name = translate_mappings[raw_name];