Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

fix: persist active workspace selection

jamesgeorge007e6fee11305c2
diff --git a/packages/hoppscotch-common/src/helpers/teams/TeamListAdapter.ts b/packages/hoppscotch-common/src/helpers/teams/TeamListAdapter.ts
index 0a303b25d..e39cc71ad 100644
--- a/packages/hoppscotch-common/src/helpers/teams/TeamListAdapter.ts
+++ b/packages/hoppscotch-common/src/helpers/teams/TeamListAdapter.ts
@@ -65,6 +65,12 @@ export default class TeamListAdapter {
this.loading$.next(true)
+ const probableUser = platform.auth.getProbableUser()
+
+ if (probableUser !== null) {
+ await platform.auth.waitProbableLoginToConfirm()
+ }
+
const results: GetMyTeamsQuery["myTeams"] = []
while (true) {