Skip to content

Commit a8eb891

Browse files
author
Jason Posthuma
committed
Add check for property
1 parent 129f7bf commit a8eb891

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LiveQuery/QueryTools.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ function matchesKeyConstraints(object, key, constraints) {
254254
break;
255255
case '$all':
256256
for (i = 0; i < compareTo.length; i++) {
257-
if (object[key].indexOf(compareTo[i]) < 0) {
257+
if (object[key] && object[key].indexOf(compareTo[i]) < 0) {
258258
return false;
259259
}
260260
}

0 commit comments

Comments
 (0)