mirror of https://github.com/logseq/logseq
fix(publishing): do not redirect if publishing
parent
d27ec18a65
commit
aadbbca4ea
|
@ -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})
|
||||
|
|
Loading…
Reference in New Issue