Fixing errors in existing migration pages (#13977)

* - Adding null checks for onValueChanged
- Adding new event for radiobuttons onDIdChangeCheckedState

* changing the null checks in checkbox
This commit is contained in:
Aasim Khan
2021-01-15 12:58:05 -08:00
committed by GitHub
parent 5810623e55
commit 2161f323c3
2 changed files with 63 additions and 20 deletions

View File

@@ -42,7 +42,10 @@ export class AccountsSelectionPage extends MigrationWizardPage {
}).component();
this._azureAccountsDropdown.onValueChanged(async (value) => {
this.migrationStateModel.azureAccount = this._accountsMap.get((this._azureAccountsDropdown.value as azdata.CategoryValue).name)!;
if (this._azureAccountsDropdown.value) {
const selectedAccount = (this._azureAccountsDropdown.value as azdata.CategoryValue).name;
this.migrationStateModel.azureAccount = this._accountsMap.get(selectedAccount)!;
}
});
const addAccountButton = view.modelBuilder.button()