mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
Fix state being reset at start
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user