We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 418b2c0 + 2c88075 commit 6c2230bCopy full SHA for 6c2230b
lib/modules/database.js
@@ -215,7 +215,7 @@ class DatabaseRef extends ReferenceBase {
215
const path = this.dbPath();
216
return this.db.off(path, evt, origCB)
217
.then(({callback, subscriptions}) => {
218
- if (dbSubscriptions[path][evt].length > 0) {
+ if (dbSubscriptions[path] && dbSubscriptions[path][evt].length > 0) {
219
return subscriptions;
220
}
221
0 commit comments