0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-16 09:41:41 -05:00

🐛 Fix swap slot is not removed on parent detach

This commit is contained in:
Pablo Alba 2024-06-03 19:52:00 +02:00 committed by Andrés Moya
parent 5fef0b64f4
commit 7c64ed84f1

View file

@ -233,6 +233,10 @@
; 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
(pcb/update-shapes [shape-id] ctk/remove-swap-slot)
:always
; Near shape-refs need to be advanced one level
(generate-advance-nesting-level nil container libraries (:id shape)))