fix: remove mismatch between last selected profile and current profile

This commit is contained in:
tomasz-io 2025-03-21 09:45:44 -07:00
parent ade83fd0c6
commit d9eb118c51

View file

@ -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();