mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -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) {
|
if (this.authType === AuthenticationType.AzureMFA || this.authType === AuthenticationType.AzureMFAAndUser) {
|
||||||
let tenantId = connectionInfo.azureTenantId;
|
|
||||||
this.fillInAzureAccountOptions().then(async () => {
|
this.fillInAzureAccountOptions().then(async () => {
|
||||||
|
let tenantId = connectionInfo.azureTenantId;
|
||||||
let accountName = (this.authType === AuthenticationType.AzureMFA)
|
let accountName = (this.authType === AuthenticationType.AzureMFA)
|
||||||
? connectionInfo.azureAccount : connectionInfo.userName;
|
? connectionInfo.azureAccount : connectionInfo.userName;
|
||||||
this._azureAccountDropdown.selectWithOptionName(this.getModelValue(accountName));
|
this._azureAccountDropdown.selectWithOptionName(this.getModelValue(accountName));
|
||||||
|
|||||||
Reference in New Issue
Block a user