diff --git a/frontend/src/app/main/data/workspace.cljs b/frontend/src/app/main/data/workspace.cljs index 6cba4a35e..ee5cf792d 100644 --- a/frontend/src/app/main/data/workspace.cljs +++ b/frontend/src/app/main/data/workspace.cljs @@ -944,7 +944,7 @@ (let [shape (get objects id) parent (get objects parent-id) component-shape (ctn/get-component-shape objects shape) - component-shape-parent (ctn/get-component-shape objects parent) + component-shape-parent (ctn/get-component-shape objects parent {:allow-main? true}) root-parent (ctn/get-instance-root objects parent) detach? (and (ctk/in-component-copy-not-head? shape)