From 1a420476c52ecc3e510901e8db37de7b4ddb21a4 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 26 May 2023 15:50:42 +0200 Subject: [PATCH] :bug: Fix incorrect impl of go-to-main-component --- frontend/src/app/main/data/workspace.cljs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/app/main/data/workspace.cljs b/frontend/src/app/main/data/workspace.cljs index 9ac8da39b..eff64d8ea 100644 --- a/frontend/src/app/main/data/workspace.cljs +++ b/frontend/src/app/main/data/workspace.cljs @@ -1232,13 +1232,12 @@ (if (= file-id current-file-id) (let [component (dm/get-in state [:workspace-data :components component-id]) page-id (:main-instance-page component)] - (when (some? page-id) (if (= page-id current-page-id) (let [shape-id (:main-instance-id component)] (rx/of (dws/select-shapes (d/ordered-set shape-id)) dwz/zoom-to-selected-shape)) - (redirect-to current-page-id page-id)))) + (redirect-to current-file-id page-id)))) (let [component (dm/get-in state [:workspace-libraries file-id :data :components component-id])] (some->> (:main-instance-page component)