From 688b9f219459f87d1b47b9c9711fb56e04eaf39b Mon Sep 17 00:00:00 2001 From: Alonso Torres Date: Wed, 12 Feb 2025 17:16:14 +0100 Subject: [PATCH] :bug: Fix focus to main component (#5842) --- frontend/src/app/main/data/workspace/libraries.cljs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/main/data/workspace/libraries.cljs b/frontend/src/app/main/data/workspace/libraries.cljs index 95d1df358..2cf8ad292 100644 --- a/frontend/src/app/main/data/workspace/libraries.cljs +++ b/frontend/src/app/main/data/workspace/libraries.cljs @@ -741,12 +741,12 @@ redirect-to-page (fn [page-id shape-id] (rx/merge - (rx/of (dcm/go-to-workspace :page-id page-id)) (->> stream - (rx/filter (ptk/type? ::initialize-page)) + (rx/filter (ptk/type? ::dw/initialize-page)) (rx/take 1) (rx/observe-on :async) - (rx/mapcat (fn [_] (select-and-zoom shape-id))))))] + (rx/mapcat (fn [_] (select-and-zoom shape-id)))) + (rx/of (dcm/go-to-workspace :page-id page-id))))] (when-let [component (dm/get-in data [:components id])] (let [page-id (:main-instance-page component)