null check

This commit is contained in:
Mads Rasmussen
2023-10-12 14:52:20 +02:00
parent 9c41d2f294
commit 9eaa114197

View File

@@ -41,6 +41,7 @@ export class UmbUserWorkspaceContext
There might be a less manual way to do this.
*/
onUserStoreChanges(user: UmbUserDetail) {
if (!user) return;
this.#data.update({ state: user.state });
}