fix(publishing): do not redirect if publishing

pull/4846/head
Andelf 2022-04-05 20:29:49 +08:00
parent d27ec18a65
commit aadbbca4ea
1 changed files with 3 additions and 0 deletions

View File

@ -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})