Skip to content

Commit

Permalink
Merge pull request #55 from rmmmp/fix-has-many-bug
Browse files Browse the repository at this point in the history
Fix bug that prevents listening for hasMany changes
  • Loading branch information
mikkopaderes authored May 13, 2018
2 parents 54d40fb + 8e3d8d0 commit 31bd1e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/instance-initializers/cloud-firestore.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ function reopenStore(appInstance) {
hasListenerForHasMany(modelName, id, field) {
if (
Object.prototype.hasOwnProperty.call(this.get('tracker'), modelName)
&& Object.prototype.hasOwnProperty.call(this.get('tracker')[modelName], id)
&& Object.prototype.hasOwnProperty.call(this.get('tracker')[modelName].document, id)
&& this.get('tracker')[modelName].document[id].relationship[field]
) {
return true;
Expand Down

0 comments on commit 31bd1e7

Please sign in to comment.