This commit is contained in:
JesmoDev
2024-03-14 09:53:47 +01:00
committed by Jacob Overgaard
parent ab8e00fe61
commit 0adebd201f

View File

@@ -45,7 +45,11 @@ export class UmbUserWorkspaceContext
There might be a less manual way to do this.
*/
onUserStoreChanges(user: EntityType | undefined) {
if (!user) return;
if (!user) {
//TODO: This solution is alright for now. But reconsider when we introduce signal-r
history.pushState(null, '', 'section/user-management');
return;
}
this.#currentData.update({ state: user.state, avatarUrls: user.avatarUrls });
}