mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 08:20:45 -05:00
🐛 Fix logged in redirect
This commit is contained in:
parent
a1fc785771
commit
7fe95f218b
1 changed files with 3 additions and 3 deletions
|
@ -172,12 +172,12 @@
|
||||||
(letfn [(get-redirect-events []
|
(letfn [(get-redirect-events []
|
||||||
(let [team-id (get-current-team-id profile)
|
(let [team-id (get-current-team-id profile)
|
||||||
welcome-file-id (dm/get-in profile [:props :welcome-file-id])
|
welcome-file-id (dm/get-in profile [:props :welcome-file-id])
|
||||||
redirect-href (:login-redirect @s/session)]
|
redirect-href (::login-redirect storage/session)]
|
||||||
|
|
||||||
(cond
|
(cond
|
||||||
(some? redirect-href)
|
(some? redirect-href)
|
||||||
(binding [s/*sync* true]
|
(binding [storage/*sync* true]
|
||||||
(swap! s/session dissoc :login-redirect)
|
(swap! storage/session dissoc ::login-redirect)
|
||||||
(rx/of (rt/nav-raw :href redirect-href)))
|
(rx/of (rt/nav-raw :href redirect-href)))
|
||||||
|
|
||||||
(some? welcome-file-id)
|
(some? welcome-file-id)
|
||||||
|
|
Loading…
Reference in a new issue