mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix(web): websocket reconnect (#7234)
* fix(web): websocket reconnect * reset store after navigation completes * remove loggedOut check
This commit is contained in:
parent
7f5459f050
commit
e7a875eadd
3 changed files with 15 additions and 21 deletions
|
|
@ -29,13 +29,13 @@
|
|||
}>();
|
||||
|
||||
const logOut = async () => {
|
||||
resetSavedUser();
|
||||
const { redirectUri } = await logout();
|
||||
if (redirectUri.startsWith('/')) {
|
||||
goto(redirectUri);
|
||||
await goto(redirectUri);
|
||||
} else {
|
||||
window.location.href = redirectUri;
|
||||
}
|
||||
resetSavedUser();
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue