diff --git a/src/dom_components/model/Components.js b/src/dom_components/model/Components.js index d6b9689f1..bad644704 100644 --- a/src/dom_components/model/Components.js +++ b/src/dom_components/model/Components.js @@ -22,6 +22,12 @@ export default Backbone.Collection.extend({ }, removeChildren(removed, coll, opts = {}) { + // Removing a parent component can cause this function + // to be called with an already removed child element + if (!removed) { + return; + } + const { domc, em } = this; const allByID = domc ? domc.allById() : {};