0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-21 06:02:32 -05:00

Fix state being reset at start

This commit is contained in:
Florian Schroedl 2024-05-21 15:40:19 +02:00
parent 975f41bc08
commit 50354ccb71

View file

@ -172,7 +172,7 @@
(mf/use-effect
(mf/deps value current-value)
#(when (not= (str value) current-value)
(reset! state* {:current-value value})))
(swap! state* assoc :current-value value)))
(mf/with-effect [is-open?]
(let [wrapper-node (mf/ref-val select-wrapper-ref)