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 9ee7677a4c..5b1d42c50e 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/layer_item.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/layer_item.cljs @@ -423,7 +423,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")