0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 23:49:45 -05:00

🐛 Fix duplicate shapes with alt key

This commit is contained in:
Alejandro Alonso 2024-06-25 15:53:17 +02:00
parent 3b5b81b08f
commit 686f59b0de

View file

@ -559,8 +559,10 @@
:layout-grid-rows]})
;; We've applied the text-modifier so we can dissoc the temporary data
(fn [state]
(update state :workspace-text-modifier #(apply dissoc % ids)))
(clear-local-transform))
(update state :workspace-text-modifier #(apply dissoc % ids))))
(if (nil? modifiers)
(rx/of (clear-local-transform))
(rx/empty))
(if undo-transation?
(rx/of (dwu/commit-undo-transaction undo-id))
(rx/empty))))))))