Show Trust server certificate on dialog and fix bool select-box defaults (#21020)

This commit is contained in:
Cheena Malhotra
2022-10-28 19:43:43 -07:00
committed by GitHub
parent 998b528680
commit f3fcaa21da
9 changed files with 91 additions and 18 deletions

View File

@@ -77,7 +77,7 @@ export class SelectBox extends vsSelectBox {
this.populateOptionsDictionary(optionItems);
this._dialogOptions = optionItems;
const option = this._optionsDictionary.get(selectedOption);
if (option) {
if (option !== undefined) {
super.select(option);
}
@@ -195,10 +195,10 @@ export class SelectBox extends vsSelectBox {
public selectWithOptionName(optionName?: string): void {
let option: number | undefined;
if (optionName) {
if (optionName !== undefined) {
option = this._optionsDictionary.get(optionName);
}
if (option) {
if (option !== undefined) {
this.select(option);
} else {
this.select(0);