diff --git a/es/store.js b/es/store.js index 216b326..c2ace50 100644 --- a/es/store.js +++ b/es/store.js @@ -561,7 +561,7 @@ export default class TreeStore extends CascadeStore { const attr2 = attr.startsWith('.') ? attr.slice(1) : attr; const path2 = path ? `${path}.${attr2}` : attr2; if (typeof p[attr] !== 'object') { - fns2.push(this.translatePredicate(path2, '$eq', filter[attr])); + fns2.push(this.translatePredicate(path2, '$eq', p[attr])); } else { translatePredicateInner(p[attr], path2, fns2); diff --git a/lib/store.js b/lib/store.js index 60eeef0..4f1510c 100644 --- a/lib/store.js +++ b/lib/store.js @@ -563,7 +563,7 @@ class TreeStore extends CascadeStore_1.CascadeStore { const attr2 = attr.startsWith('.') ? attr.slice(1) : attr; const path2 = path ? `${path}.${attr2}` : attr2; if (typeof p[attr] !== 'object') { - fns2.push(this.translatePredicate(path2, '$eq', filter[attr])); + fns2.push(this.translatePredicate(path2, '$eq', p[attr])); } else { translatePredicateInner(p[attr], path2, fns2);