From d9eb118c514fc2a4364f532eb6438588fc9f712c Mon Sep 17 00:00:00 2001 From: tomasz-io Date: Fri, 21 Mar 2025 09:45:44 -0700 Subject: [PATCH] fix: remove mismatch between last selected profile and current profile --- core/config/ConfigHandler.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/core/config/ConfigHandler.ts b/core/config/ConfigHandler.ts index ddff9bd40..7db61161a 100644 --- a/core/config/ConfigHandler.ts +++ b/core/config/ConfigHandler.ts @@ -387,16 +387,6 @@ export class ConfigHandler { this.ideSettingsPromise, ); - // After login, default to the first org as the selected org - try { - const orgs = await this.controlPlaneClient.listOrganizations(); - if (orgs.length) { - await this.setSelectedOrgId(orgs[0].id); - } - } catch (e) { - console.error("Failed to fetch control plane profiles: ", e); - } - this.fetchControlPlaneProfiles().catch(async (e) => { console.error("Failed to fetch control plane profiles: ", e); await this.loadLocalProfilesOnly();