mirror of
https://github.com/penpot/penpot.git
synced 2026-03-19 17:03:44 +00:00
🐛 Fix swap components duplicates component
This commit is contained in:
committed by
Andrey Antukh
parent
02399add7a
commit
0c1f6f8e71
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user