mirror of
https://github.com/penpot/penpot.git
synced 2025-05-29 00:47:21 +02:00
🐛 Properly redirect bad-gateway errors on login.
This commit is contained in:
parent
87aa3fbfe8
commit
2500486186
1 changed files with 1 additions and 5 deletions
|
@ -77,11 +77,7 @@
|
||||||
ptk/WatchEvent
|
ptk/WatchEvent
|
||||||
(watch [_ state s]
|
(watch [_ state s]
|
||||||
(->> (rp/query! :profile)
|
(->> (rp/query! :profile)
|
||||||
(rx/map profile-fetched)
|
(rx/map profile-fetched)))))
|
||||||
(rx/catch (fn [error]
|
|
||||||
(if (= (:type error) :not-found)
|
|
||||||
(rx/of (rt/nav :auth-login))
|
|
||||||
(rx/empty))))))))
|
|
||||||
|
|
||||||
;; --- Update Profile
|
;; --- Update Profile
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue