fix: remove mismatch between last selected profile and current profile
This commit is contained in:
parent
ade83fd0c6
commit
d9eb118c51
1 changed files with 0 additions and 10 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue