We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ca78a1 commit 80133deCopy full SHA for 80133de
lib/modules/database.js
@@ -232,7 +232,7 @@ class DatabaseRef extends ReferenceBase {
232
const path = this.dbPath();
233
return this.db.off(path, evt, origCB)
234
.then(({callback, subscriptions}) => {
235
- if (dbSubscriptions[path] && dbSubscriptions[path][evt].length > 0) {
+ if (dbSubscriptions[path] && dbSubscriptions[path][evt] && dbSubscriptions[path][evt].length > 0) {
236
return subscriptions;
237
}
238
0 commit comments