Skip to content

Commit 88971d8

Browse files
authored
Merge pull request #15 from TARAAI/fix-in-operator-in-query-processes
fix: `in` operator in query processes map
2 parents 9ccfc13 + cb39c43 commit 88971d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reducers/cacheReducer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const PROCESSES = {
105105
'>=': (a, b) => a >= b,
106106
'>': (a, b) => a > b,
107107
'array-contains': (a, b) => a.includes(b),
108-
in: (a, b) => a && b && b.includes(a),
108+
in: (a, b) => Array.isArray(b) && b.includes(a),
109109
'array-contains-any': (a, b) => b.some((b1) => a.includes(b1)),
110110
'not-in': (a, b) => !b.includes(a),
111111
'*': () => true,

0 commit comments

Comments
 (0)