fix(web): websocket reconnect (#7234)

* fix(web): websocket reconnect

* reset store after navigation completes

* remove loggedOut check
This commit is contained in:
Michel Heusschen
2024-02-20 15:20:09 +01:00
committed by GitHub
parent 7f5459f050
commit e7a875eadd
3 changed files with 15 additions and 21 deletions

View File

@@ -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>