mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 16:30:37 -05:00
🐛 Fix swap slot is not removed on parent detach (2)
This commit is contained in:
parent
7c64ed84f1
commit
54c506100d
1 changed files with 2 additions and 2 deletions
|
@ -233,8 +233,8 @@
|
||||||
; If the initial shape was component-root, first level subinstances are converted in top instances
|
; If the initial shape was component-root, first level subinstances are converted in top instances
|
||||||
(pcb/update-shapes [shape-id] #(assoc % :component-root true))
|
(pcb/update-shapes [shape-id] #(assoc % :component-root true))
|
||||||
|
|
||||||
component-root?
|
:always
|
||||||
; If the initial shape was component-root, first level subinstances can't have swap-slot
|
; First level subinstances of a detached component can't have swap-slot
|
||||||
(pcb/update-shapes [shape-id] ctk/remove-swap-slot)
|
(pcb/update-shapes [shape-id] ctk/remove-swap-slot)
|
||||||
|
|
||||||
:always
|
:always
|
||||||
|
|
Loading…
Reference in a new issue