mirror of
https://github.com/penpot/penpot.git
synced 2025-03-16 01:31:22 -05:00
🐛 Fix swap components duplicates component
This commit is contained in:
parent
02399add7a
commit
0c1f6f8e71
1 changed files with 1 additions and 0 deletions
|
@ -151,6 +151,7 @@
|
|||
[{:keys [item loop? shapes file-id root-shape container component-id] :as props}]
|
||||
(let [on-select-component
|
||||
(mf/use-fn
|
||||
(mf/deps shapes file-id item)
|
||||
#(when-not loop?
|
||||
(st/emit! (dwl/component-multi-swap shapes file-id (:id item)))))
|
||||
item-ref (mf/use-ref)
|
||||
|
|
Loading…
Add table
Reference in a new issue