From 85d06b10c2cf84c679000f93aa8c590655635af2 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 4 Mar 2024 16:18:57 +0100 Subject: [PATCH] :bug: Fix incorrect event handling on component annotation creation --- .../main/ui/workspace/sidebar/options/menus/component.cljs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/sidebar/options/menus/component.cljs b/frontend/src/app/main/ui/workspace/sidebar/options/menus/component.cljs index a016f99f3..84a888fba 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options/menus/component.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options/menus/component.cljs @@ -110,9 +110,10 @@ (let [text (dom/get-value textarea)] (when-not (str/blank? text) (reset! editing* false) + (st/emit! (dw/update-component-annotation component-id text)) (when ^boolean creating? - (st/emit! (dw/set-annotations-id-for-create nil))) - (dw/update-component-annotation component-id text)))))) + (st/emit! (dw/set-annotations-id-for-create nil)))))))) + on-delete-annotation (mf/use-fn