Skip to content

Commit 3dcffc4

Browse files
committed
oops
1 parent c655326 commit 3dcffc4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/vs/workbench/contrib/notebook/browser/diff/diffComponents.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1817,7 +1817,9 @@ export class ModifiedElement extends AbstractElementRenderer {
18171817
override dispose() {
18181818
// The editor isn't disposed yet, it can be re-used.
18191819
// However the model can be disposed before the editor & that causes issues.
1820-
this._editor!.setModel(null);
1820+
if (this._editor) {
1821+
this._editor.setModel(null);
1822+
}
18211823

18221824
if (this._editor && this._editorViewStateChanged) {
18231825
this.cell.saveSpirceEditorViewState(this._editor.saveViewState());

0 commit comments

Comments
 (0)