Skip to content

Commit

Permalink
Add check for property
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Posthuma committed Jun 11, 2021
1 parent 129f7bf commit a8eb891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LiveQuery/QueryTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ function matchesKeyConstraints(object, key, constraints) {
break;
case '$all':
for (i = 0; i < compareTo.length; i++) {
if (object[key].indexOf(compareTo[i]) < 0) {
if (object[key] && object[key].indexOf(compareTo[i]) < 0) {
return false;
}
}
Expand Down

0 comments on commit a8eb891

Please sign in to comment.