Merge pull request #4798 from penpot/superalex-fix-alt-duplicate-shapes

🐛 Fix duplicate shapes with alt key
This commit is contained in:
Andrey Antukh 2024-06-25 16:32:24 +02:00 committed by GitHub
commit 3a30e6b29e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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))))))))