From 91fd8c4f81a327e92feddc4c2c1b9ad428282865 Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Thu, 6 Jun 2024 10:24:39 +0200 Subject: [PATCH] :bug: Fix verror on coping main component with frame over a copy --- common/src/app/common/types/container.cljc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/common/src/app/common/types/container.cljc b/common/src/app/common/types/container.cljc index b50c5058a..c4166508a 100644 --- a/common/src/app/common/types/container.cljc +++ b/common/src/app/common/types/container.cljc @@ -375,8 +375,11 @@ {:skip-components? true :bottom-frames? true ;; We must avoid that destiny frame is inside the component frame - :validator #(nil? (get component-children (:id %)))})) - + :validator #(and + ;; We must avoid that destiny frame is inside the component frame + (nil? (get component-children (:id %))) + ;; We must avoid that destiny frame is inside a copy + (not (ctk/in-component-copy? %)))})) frame (get-shape container frame-id) component-frame (get-component-shape objects frame {:allow-main? true})