fix: (regression 0.52.1) faulty account-redirect
Massimo Melina committed
May 11, 2024 at 11:52 UTC
a73d09a1656ea6fee5a459809a61da789807ebc9
1 file changed
+2
-1
frontend/src/login.ts
+2
-1
@@ -114,7 +114,8 @@ export async function loginDialog(closable=false) {
114
const res = await login(usr, pwd)
115
close(true)
116
if (res?.redirect)
117
- getHFS().navigate(res.redirect)
117
+ setTimeout(() => // workaround: the history.back() issued by closing the dialog is messing with our navigation
118
+ getHFS().navigate(res.redirect) )
119
} catch (err: any) {
120
await alertDialog(err)
121
usrRef.current?.focus()