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 []
|
||||
(let [team-id (get-current-team-id profile)
|
||||
welcome-file-id (dm/get-in profile [:props :welcome-file-id])
|
||||
redirect-href (:login-redirect @s/session)]
|
||||
redirect-href (::login-redirect storage/session)]
|
||||
|
||||
(cond
|
||||
(some? redirect-href)
|
||||
(binding [s/*sync* true]
|
||||
(swap! s/session dissoc :login-redirect)
|
||||
(binding [storage/*sync* true]
|
||||
(swap! storage/session dissoc ::login-redirect)
|
||||
(rx/of (rt/nav-raw :href redirect-href)))
|
||||
|
||||
(some? welcome-file-id)
|
||||
|
|
Loading…
Reference in a new issue