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:
parent
975f41bc08
commit
50354ccb71
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue