0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 08:20:45 -05:00

🐛 Fix swap slot is not removed on parent detach (2)

This commit is contained in:
Pablo Alba 2024-06-04 10:53:53 +02:00 committed by Andrés Moya
parent 7c64ed84f1
commit 54c506100d

View file

@ -233,8 +233,8 @@
; If the initial shape was component-root, first level subinstances are converted in top instances
(pcb/update-shapes [shape-id] #(assoc % :component-root true))
component-root?
; If the initial shape was component-root, first level subinstances can't have swap-slot
:always
; First level subinstances of a detached component can't have swap-slot
(pcb/update-shapes [shape-id] ctk/remove-swap-slot)
:always