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:
parent
818aa043ca
commit
f3261c9b0f
1 changed files with 6 additions and 3 deletions
|
@ -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!
|
||||||
|
|
Loading…
Reference in a new issue