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.
1 parent b45513d commit b451a4cCopy full SHA for b451a4c
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