mirror of
https://github.com/penpot/penpot.git
synced 2025-01-08 16:00:19 -05:00
🐛 Fix session storage entry name
This commit is contained in:
parent
19a613e90c
commit
03ebeb0657
1 changed files with 2 additions and 2 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 storage/session)]
|
redirect-href (:login-redirect storage/session)]
|
||||||
|
|
||||||
(cond
|
(cond
|
||||||
(some? redirect-href)
|
(some? redirect-href)
|
||||||
(binding [storage/*sync* true]
|
(binding [storage/*sync* true]
|
||||||
(swap! storage/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