Skip to content

Commit cb39c43

Browse files
committed
fix: in operator in query processes map
1 parent 9ccfc13 commit cb39c43

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)