Skip to content

Commit f6d023c

Browse files
author
Loïc Mangeonjean
committed
fix: prevent model reference from being empty on model change
1 parent 51224a7 commit f6d023c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/MonacoEditor.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,6 @@ function MonacoEditor ({
248248
lastSaveViewState(editorRef.current, model)
249249
}
250250
disposableStore.dispose()
251-
modelRef.current = undefined
252251
}
253252
}
254253
const disposePromise = updateModel()

0 commit comments

Comments
 (0)