mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-23 01:25:38 -05:00
Fix resetting tenant when dropdown is not visible (#22845)
This commit is contained in:
@@ -813,7 +813,10 @@ export class ConnectionWidget extends lifecycle.Disposable {
|
||||
|
||||
} else {
|
||||
if (selectedAccount && selectedAccount.properties.tenants && selectedAccount.properties.tenants.length === 1) {
|
||||
let options = selectedAccount.properties.tenants.map(tenant => tenant.displayName);
|
||||
this._azureTenantDropdown.setOptions(options);
|
||||
this._azureTenantId = selectedAccount.properties.tenants[0].id;
|
||||
this.onAzureTenantSelected(0);
|
||||
}
|
||||
this._tableContainer.classList.add(hideTenantsClassName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user