0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-22 14:39:45 -05:00

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

This commit is contained in:
Pablo Alba 2024-04-09 18:59:17 +02:00 committed by Alonso Torres
parent c94478c9bb
commit c8b2db8145

View file

@ -509,6 +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?)