mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-26 17:23:15 -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 {
|
||||
this.selectionDetailsPane.innerText = '';
|
||||
const description = this.options[selectedIndex].description;
|
||||
const descriptionIsMarkdown = this.options[selectedIndex].descriptionIsMarkdown;
|
||||
const description = this.options[selectedIndex]?.description;
|
||||
const descriptionIsMarkdown = this.options[selectedIndex]?.descriptionIsMarkdown;
|
||||
|
||||
if (description) {
|
||||
if (descriptionIsMarkdown) {
|
||||
|
||||
Reference in New Issue
Block a user