mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 01:06:37 +02:00
🐛 Fix swap slots when detaching a copy with subcopies
This commit is contained in:
parent
058a72b817
commit
03aa0817f7
4 changed files with 37 additions and 17 deletions
|
@ -184,10 +184,7 @@
|
|||
(ctk/instance-head? child))
|
||||
(let [slot (guess-swap-slot component-child component-container)]
|
||||
(l/dbg :hint "child" :id (:id child) :name (:name child) :slot slot)
|
||||
(ctn/update-shape container (:id child)
|
||||
#(update % :touched
|
||||
cfh/set-touched-group
|
||||
(ctk/build-swap-slot-group slot))))
|
||||
(ctn/update-shape container (:id child) #(ctk/set-swap-slot % slot)))
|
||||
container)]
|
||||
(recur (process-copy-head container child)
|
||||
(rest children)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue