Skip to content

Commit

Permalink
FIX error when sync emits empty
Browse files Browse the repository at this point in the history
  • Loading branch information
pubkey committed Mar 6, 2017
1 parent 2693a76 commit 680f75b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RxCollection.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ class RxCollection {
const ob2 = this.$
.map(cE => cE.data.v)
.map(doc => {
if (sendChanges[doc._rev]) sendChanges[doc._rev] = 'NO';
if (doc && sendChanges[doc._rev]) sendChanges[doc._rev] = 'NO';
})
.subscribe();
this._subs.push(ob2);
Expand Down

0 comments on commit 680f75b

Please sign in to comment.