Fixed: Interactive Search Filter not filtering multiple qualities in the same filter row
This commit is contained in:
parent
bc5a43bd92
commit
c93f63cd20
|
@ -44,7 +44,14 @@ function filter(items, state) {
|
||||||
const predicate = filterPredicates[key];
|
const predicate = filterPredicates[key];
|
||||||
|
|
||||||
if (Array.isArray(value)) {
|
if (Array.isArray(value)) {
|
||||||
|
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));
|
accepted = value.some((v) => predicate(item, v, type));
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
accepted = predicate(item, value, type);
|
accepted = predicate(item, value, type);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue