diff --git a/editor/layer.js b/editor/layer.js index 06f876f9..8c814786 100644 --- a/editor/layer.js +++ b/editor/layer.js @@ -188,7 +188,8 @@ class Layer { * @returns {SVGGElement} The layer SVG group that was just removed. */ removeGroup () { - const group = this.group_.remove(); + const group = this.group_; + this.group_.remove(); this.group_ = undefined; return group; }