mirror of
https://github.com/immich-app/immich.git
synced 2025-11-24 23:40:45 +09:00
fix(web): websocket reconnect (#7234)
* fix(web): websocket reconnect * reset store after navigation completes * remove loggedOut check
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user