Fixed: Interactive Search Filter not filtering multiple qualities in the same filter row

(cherry picked from commit c93f63cd204bf62dab3dffef6e29c8dd4c408cab)
pull/2765/head
Mark McDowall 3 years ago committed by Qstick
parent 9a5ec50e78
commit 25fdfb8dd1

@ -44,7 +44,14 @@ function filter(items, state) {
const predicate = filterPredicates[key]; const predicate = filterPredicates[key];
if (Array.isArray(value)) { if (Array.isArray(value)) {
accepted = value.some((v) => predicate(item, v, type)); if (
type === filterTypes.NOT_CONTAINS ||
type === filterTypes.NOT_EQUAL
) {
accepted = value.every((v) => predicate(item, v, type));
} else {
accepted = value.some((v) => predicate(item, v, type));
}
} else { } else {
accepted = predicate(item, value, type); accepted = predicate(item, value, type);
} }

Loading…
Cancel
Save