mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Null check for updatedetail (#12900)
* added null check for options * simplification
This commit is contained in:
@@ -862,8 +862,8 @@ export class SelectBoxList extends Disposable implements ISelectBoxDelegate, ILi
|
|||||||
|
|
||||||
private updateDetail(selectedIndex: number): void {
|
private updateDetail(selectedIndex: number): void {
|
||||||
this.selectionDetailsPane.innerText = '';
|
this.selectionDetailsPane.innerText = '';
|
||||||
const description = this.options[selectedIndex].description;
|
const description = this.options[selectedIndex]?.description;
|
||||||
const descriptionIsMarkdown = this.options[selectedIndex].descriptionIsMarkdown;
|
const descriptionIsMarkdown = this.options[selectedIndex]?.descriptionIsMarkdown;
|
||||||
|
|
||||||
if (description) {
|
if (description) {
|
||||||
if (descriptionIsMarkdown) {
|
if (descriptionIsMarkdown) {
|
||||||
|
|||||||
Reference in New Issue
Block a user