Skip to content

Commit

Permalink
Merge pull request #297 from merlinnot/fix-issue-296
Browse files Browse the repository at this point in the history
Fix `query` in FirestoreMixin.
  • Loading branch information
tjmonsi authored Oct 25, 2017
2 parents eb69c00 + 958bf09 commit 4328fd0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions firebase-firestore-mixin.html
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,8 @@
this[name + 'Ref'] = ref;
this[name + 'Ready'] = false;

const query = this.constructor.properties[name].query;
if (query) {
ref = query.call(this, ref, this);
if (config.query) {
ref = config.query.call(this, ref, this);
}

if (config.live) {
Expand Down

0 comments on commit 4328fd0

Please sign in to comment.