0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-06 14:50:20 -05:00

Fix emit! side-effect

This commit is contained in:
Florian Schroedl 2024-07-04 10:41:10 +02:00
parent 818aa043ca
commit f3261c9b0f

View file

@ -148,9 +148,12 @@
:attrs ctt/border-radius-keys}))
(defn update-shape-dimensions [value shape-ids]
(st/emit!
(dwt/update-dimensions shape-ids :width value)
(dwt/update-dimensions shape-ids :height value)))
(ptk/reify ::update-shape-dimensions
ptk/WatchEvent
(watch [_ _ _]
(rx/of
(dwt/update-dimensions shape-ids :width value)
(dwt/update-dimensions shape-ids :height value)))))
(defn update-opacity [value shape-ids]
(st/emit!