Skip to content

Commit

Permalink
Fix strict null check. Fixes: microsoft#71096
Browse files Browse the repository at this point in the history
  • Loading branch information
cleidigh committed Mar 27, 2019
1 parent addde0b commit 5520093
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/base/browser/ui/selectBox/selectBoxCustom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -851,8 +851,8 @@ export class SelectBoxList implements ISelectBoxDelegate, IListVirtualDelegate<I
const description = this.options[selectedIndex].description;
const descriptionIsMarkdown = this.options[selectedIndex].descriptionIsMarkdown;

if (description) {
if (descriptionIsMarkdown) {
if (typeof description === 'string') {
if (!!descriptionIsMarkdown) {
this.selectionDetailsPane.appendChild(this.renderDescriptionMarkdown(description));
} else {
this.selectionDetailsPane.innerText = description;
Expand Down

0 comments on commit 5520093

Please sign in to comment.