0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-28 15:41:25 -05:00

🐛 Fix crash on moving a copy in a copy (for a migrated file)

This commit is contained in:
Pablo Alba 2024-04-09 12:32:18 +02:00 committed by Andrés Moya
parent e8b29c3cfc
commit a4c7cc51bb

View file

@ -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,