diff --git a/client/src/ui/dom.js b/client/src/ui/dom.js index 8f1008b1..1b5c71f7 100644 --- a/client/src/ui/dom.js +++ b/client/src/ui/dom.js @@ -44,7 +44,8 @@ class DOMObserver { for (let sub of this.subscriptions) { try { const f = sub.type && sub.type === 'filter' ? mutations.filter(sub.filter) : mutations.find(sub.filter); - if (!f || !f.length) continue; + if (!f) continue; + if (sub.type && sub.type === 'filter' && !f.length) continue; sub.callback(f); } catch(err) {} }