mirror of https://github.com/logseq/logseq
fix: page crash when navigating to home if default home is a custom page #5060
parent
e992e627ab
commit
3973f2794e
|
@ -17,7 +17,9 @@
|
|||
:or {push true}}]
|
||||
(let [route-fn (if push rfe/push-state rfe/replace-state)]
|
||||
(state/save-scroll-position! (util/scroll-top))
|
||||
(route-fn to path-params query-params)))
|
||||
(route-fn to path-params query-params))
|
||||
;; force return nil for usage in render phase of React
|
||||
nil)
|
||||
|
||||
(defn redirect-to-home!
|
||||
([]
|
||||
|
|
Loading…
Reference in New Issue