0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 07:50:43 -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})) :attrs ctt/border-radius-keys}))
(defn update-shape-dimensions [value shape-ids] (defn update-shape-dimensions [value shape-ids]
(st/emit! (ptk/reify ::update-shape-dimensions
(dwt/update-dimensions shape-ids :width value) ptk/WatchEvent
(dwt/update-dimensions shape-ids :height value))) (watch [_ _ _]
(rx/of
(dwt/update-dimensions shape-ids :width value)
(dwt/update-dimensions shape-ids :height value)))))
(defn update-opacity [value shape-ids] (defn update-opacity [value shape-ids]
(st/emit! (st/emit!