From bb0e9b47cbb0e4eac6a8b1a7a3e76919c1f2cbf1 Mon Sep 17 00:00:00 2001 From: Elena Torro Date: Mon, 26 Jan 2026 15:52:19 +0100 Subject: [PATCH] :bug: Fix shape operations on sidebar when using interaction observer --- frontend/src/app/main/ui/workspace/sidebar/layer_item.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/workspace/sidebar/layer_item.cljs b/frontend/src/app/main/ui/workspace/sidebar/layer_item.cljs index ebb1312369..d374754e39 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/layer_item.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/layer_item.cljs @@ -422,7 +422,8 @@ (reset! observer-var nil)))) ;; Re-observe sentinel whenever children-count changes (sentinel moves) - (mf/with-effect [children-count expanded?] + ;; and (shapes item) to reconnect observer after shape changes + (mf/with-effect [children-count expanded? (:shapes item)] (let [total (count (:shapes item)) node (mf/ref-val ref) scroll-node (dom/get-parent-with-data node "scroll-container")