Skip to content

Commit 95fef05

Browse files
committed
apply fix to prevent crash in clearWidgets()
1 parent bb5669e commit 95fef05

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ide/spans.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,7 @@ export class CodeBlockSpan extends BlockSpan {
720720
}
721721

722722
clearWidgets() {
723+
if(!this.widget) return;
723724
this.widget.clear();
724725
this.footerWidget.clear();
725726
this.widget = this.widgetElem = this.widgetLine = undefined;

0 commit comments

Comments
 (0)