mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-23 17:23:02 -05:00
Resolves undefined tenant error while adding an account. (#18937)
* Selects the first tenant that appears in the drop down list of tenants * Fixes tenant undefined while adding account error
This commit is contained in:
@@ -686,8 +686,8 @@ export class ConnectionWidget extends lifecycle.Disposable {
|
||||
}
|
||||
|
||||
if (this.authType === AuthenticationType.AzureMFA || this.authType === AuthenticationType.AzureMFAAndUser) {
|
||||
let tenantId = connectionInfo.azureTenantId;
|
||||
this.fillInAzureAccountOptions().then(async () => {
|
||||
let tenantId = connectionInfo.azureTenantId;
|
||||
let accountName = (this.authType === AuthenticationType.AzureMFA)
|
||||
? connectionInfo.azureAccount : connectionInfo.userName;
|
||||
this._azureAccountDropdown.selectWithOptionName(this.getModelValue(accountName));
|
||||
|
||||
Reference in New Issue
Block a user