diff --git a/src/js/common/dom.js b/src/js/common/dom.js index 7b9fff31..e88d4bbd 100644 --- a/src/js/common/dom.js +++ b/src/js/common/dom.js @@ -810,7 +810,7 @@ class DOM { removeEmpty(element) { const parent = element.parentElement const type = this.componentType(element) - const children = parent.getElementsByClassName('stage-' + type) + const children = parent.getElementsByClassName(`stage-${type}s`) this.remove(element) if (!children.length) { if (!this.isStage(parent)) {