mirror of
https://github.com/penpot/penpot.git
synced 2025-05-14 22:56:40 +02:00
🐛 Fix initial page loading.
This commit is contained in:
parent
140135317c
commit
4e382d456f
2 changed files with 10 additions and 6 deletions
|
@ -43,9 +43,13 @@
|
|||
[router path]
|
||||
(let [match (rt/match router path)]
|
||||
(prn "main$on-navigate" path)
|
||||
|
||||
(cond
|
||||
#_(and (= path "") (nil? match))
|
||||
#_(html-history/set-path! "/dashboard/projects")
|
||||
(and (= path "") (:auth storage))
|
||||
(st/emit! (rt/nav :dashboard/projects))
|
||||
|
||||
(and (= path "") (not (:auth storage)))
|
||||
(st/emit! (rt/nav :auth/login))
|
||||
|
||||
(nil? match)
|
||||
(prn "TODO 404 main")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue