diff --git a/src/main/capacitor/events.cljs b/src/main/capacitor/events.cljs index 17903335d3..beb0e07b8b 100644 --- a/src/main/capacitor/events.cljs +++ b/src/main/capacitor/events.cljs @@ -47,10 +47,8 @@ "graph: the target graph to switch to" [graph opts] (p/do! - (repo-handler/restore-and-setup-repo! graph) - ;(graph-switch graph) - (state/set-current-repo! graph) - (state/set-state! :sync-graph/init? false))) + (repo-handler/restore-and-setup-repo! graph {:ignore-style? true}) + (state/set-current-repo! graph))) (defmethod handle :graph/switch [[_ graph opts]] (state/set-state! :db/async-queries {}) diff --git a/src/main/frontend/handler/repo.cljs b/src/main/frontend/handler/repo.cljs index 1fcf28921c..9aee199862 100644 --- a/src/main/frontend/handler/repo.cljs +++ b/src/main/frontend/handler/repo.cljs @@ -76,7 +76,8 @@ (when (config/global-config-enabled?) (global-config-handler/restore-global-config!)) ;; Don't have to unlisten the old listener, as it will be destroyed with the conn - (ui-handler/add-style-if-exists!) + (when-not (true? (:ignore-style? opts)) + (ui-handler/add-style-if-exists!)) (when-not config/publishing? (state/set-db-restoring! false))))