mirror of
https://github.com/penpot/penpot.git
synced 2026-03-11 21:06:48 +00:00
🐛 Fix swap slot is not removed on parent detach (2)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user