From 4582ffb440a47391edd263e4cfbc0738a73515b1 Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Tue, 30 May 2023 22:38:14 +0200 Subject: [PATCH] :bug: Fix show main component --- frontend/src/app/main/data/workspace.cljs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/frontend/src/app/main/data/workspace.cljs b/frontend/src/app/main/data/workspace.cljs index a546e198b..4e8537420 100644 --- a/frontend/src/app/main/data/workspace.cljs +++ b/frontend/src/app/main/data/workspace.cljs @@ -21,7 +21,6 @@ [app.common.text :as txt] [app.common.transit :as t] [app.common.types.component :as ctk] - [app.common.types.components-list :as ctkl] [app.common.types.container :as ctn] [app.common.types.file :as ctf] [app.common.types.pages-list :as ctpl] @@ -1251,11 +1250,7 @@ (watch [_ state _] (let [components-v2 (features/active-feature? state :components-v2)] (if components-v2 - (let [file-data (wsh/get-local-file state) - component (ctkl/get-component file-data component-id) - main-instance-id (:main-instance-id component) - main-instance-page (:main-instance-page component)] - (rx/of (go-to-main-instance main-instance-page main-instance-id))) + (rx/of (go-to-main-instance nil component-id)) (let [project-id (get-in state [:workspace-project :id]) file-id (get-in state [:workspace-file :id]) page-id (get state :current-page-id)