Skip to content

Commit 5a356a5

Browse files
committed
fix: bug with ‘in’ queries
1 parent a120da6 commit 5a356a5

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 && a.includes(b),
108+
in: (a, b) => a && 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)