From 50354ccb71251919f93b6b51f9e743bee44db52e Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Tue, 21 May 2024 15:40:19 +0200 Subject: [PATCH] Fix state being reset at start --- frontend/src/app/main/ui/workspace/tokens/editable_select.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/workspace/tokens/editable_select.cljs b/frontend/src/app/main/ui/workspace/tokens/editable_select.cljs index 2679c22f0..5687d9c24 100644 --- a/frontend/src/app/main/ui/workspace/tokens/editable_select.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/editable_select.cljs @@ -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)