Browse Source

fix(publishing): do not redirect if publishing

Andelf 3 years ago
parent
commit
aadbbca4ea
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/main/frontend/components/theme.cljs

+ 3 - 0
src/main/frontend/components/theme.cljs

@@ -1,5 +1,6 @@
 (ns frontend.components.theme
   (:require [frontend.extensions.pdf.highlights :as pdf]
+            [frontend.config :as config]
             [frontend.handler.plugin :refer [lsp-enabled?] :as plugin-handler]
             [frontend.handler.route :as route-handler]
             [frontend.handler.ui :as ui-handler]
@@ -61,6 +62,8 @@
                     ;; demo graph only
                     (and (= 1 (count repos)) (:example? (first repos))
                          (not (util/mobile?)))
+                    ;; not in publising mode
+                    config/publishing?
                     ;; other graphs exists
                     (seq repos))
             (route-handler/redirect! {:to :repo-add})