From 77db2d3ac0ee33a856b3233c52009be37b7157b8 Mon Sep 17 00:00:00 2001 From: Amir Omidi Date: Thu, 2 Apr 2020 17:05:51 -0700 Subject: [PATCH] connection widget wasn't getting the correct account for the dialog (#9834) --- .../workbench/services/connection/browser/connectionWidget.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sql/workbench/services/connection/browser/connectionWidget.ts b/src/sql/workbench/services/connection/browser/connectionWidget.ts index 9ff5759350..0a1075f5cd 100644 --- a/src/sql/workbench/services/connection/browser/connectionWidget.ts +++ b/src/sql/workbench/services/connection/browser/connectionWidget.ts @@ -698,7 +698,7 @@ export class ConnectionWidget extends lifecycle.Disposable { if (this.authType === AuthenticationType.AzureMFA || this.authType === AuthenticationType.AzureMFAAndUser) { this.fillInAzureAccountOptions().then(async () => { let accountName = (this.authType === AuthenticationType.AzureMFA) - ? connectionInfo.userName : connectionInfo.azureAccount; + ? connectionInfo.azureAccount : connectionInfo.userName; this._azureAccountDropdown.selectWithOptionName(this.getModelValue(accountName)); await this.onAzureAccountSelected(); let tenantId = connectionInfo.azureTenantId;