diff --git a/web/store/user/index.ts b/web/store/user/index.ts index f22507a12..82839805e 100644 --- a/web/store/user/index.ts +++ b/web/store/user/index.ts @@ -97,9 +97,11 @@ export class UserStore implements IUserStore { }); const user = await this.userService.currentUser(); if (user && user?.id) { - await this.userProfile.fetchUserProfile(); - await this.userSettings.fetchCurrentUserSettings(); - await this.store.workspaceRoot.fetchWorkspaces(); + await Promise.all([ + this.userProfile.fetchUserProfile(), + this.userSettings.fetchCurrentUserSettings(), + this.store.workspaceRoot.fetchWorkspaces(), + ]); runInAction(() => { this.data = user; this.isLoading = false; diff --git a/web/store/user/profile.store.ts b/web/store/user/profile.store.ts index 606cbe6bf..b5bdb8912 100644 --- a/web/store/user/profile.store.ts +++ b/web/store/user/profile.store.ts @@ -104,6 +104,7 @@ export class ProfileStore implements IUserProfileStore { message: "Failed to fetch user profile", }; }); + throw error; } }; diff --git a/web/store/user/settings.store.ts b/web/store/user/settings.store.ts index 2a2675c9f..970c2faf8 100644 --- a/web/store/user/settings.store.ts +++ b/web/store/user/settings.store.ts @@ -73,6 +73,7 @@ export class UserSettingsStore implements IUserSettingsStore { message: "Failed to fetch user settings", }; }); + throw error; } }; }