Fix set authenticationType of undefined error (#21982)

This commit is contained in:
Lewis Sanchez
2023-02-17 15:04:59 -08:00
committed by GitHub
parent e40c8dda25
commit 7c47aea06e

View File

@@ -670,8 +670,10 @@ export class ConnectionWidget extends lifecycle.Disposable {
this._passwordInputBox.enable(); this._passwordInputBox.enable();
this._rememberPasswordCheckBox.enabled = true; this._rememberPasswordCheckBox.enabled = true;
if (this._initialConnectionInfo) {
this._initialConnectionInfo.authenticationType = AuthenticationType.SqlLogin; this._initialConnectionInfo.authenticationType = AuthenticationType.SqlLogin;
if (this._initialConnectionInfo && this._initialConnectionInfo.userName) {
if (this._initialConnectionInfo.userName) {
const setPasswordInputBox = (profile: IConnectionProfile) => { const setPasswordInputBox = (profile: IConnectionProfile) => {
this._passwordInputBox.value = profile.password; this._passwordInputBox.value = profile.password;
}; };
@@ -681,6 +683,7 @@ export class ConnectionWidget extends lifecycle.Disposable {
} }
} }
} }
}
private async fillInAzureAccountOptions(): Promise<void> { private async fillInAzureAccountOptions(): Promise<void> {
let oldSelection = this._azureAccountDropdown.value; let oldSelection = this._azureAccountDropdown.value;