From a4c7cc51bbb67a1e8addd8eb6096ef84c922c83f Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Tue, 9 Apr 2024 12:32:18 +0200 Subject: [PATCH] :bug: Fix crash on moving a copy in a copy (for a migrated file) --- common/src/app/common/types/container.cljc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/app/common/types/container.cljc b/common/src/app/common/types/container.cljc index d71390508..ad2424144 100644 --- a/common/src/app/common/types/container.cljc +++ b/common/src/app/common/types/container.cljc @@ -509,7 +509,7 @@ (every? nil?)))] (or ;;We don't want to change the structure of component copies - (ctk/in-component-copy? parent) + (has-any-copy-parent? objects parent) ;; If we are moving something containing a main instance the container can't be part of a component (neither main nor copy) (and selected-main-instance? parent-in-component?) ;; Avoid placing a shape as a direct or indirect child of itself,