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:
parent
5fef0b64f4
commit
7c64ed84f1
1 changed files with 4 additions and 0 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Reference in a new issue