We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ba3a59 commit 74b646bCopy full SHA for 74b646b
packages/app/src/app/components/CodeEditor/VSCode/index.tsx
@@ -888,14 +888,12 @@ class MonacoEditor extends React.Component<Props> implements Editor {
888
889
this.lint = debounce(this.lint, 400);
890
891
- if (this.editor.getActiveCodeEditor()) {
+ const activeEditor = this.editor.getActiveCodeEditor();
892
+ if (activeEditor && activeEditor.getModel()) {
893
this.lint(
894
this.getCode(),
895
this.currentModule.title,
- this.editor
896
- .getActiveCodeEditor()
897
- .getModel()
898
- .getVersionId()
+ activeEditor.getModel().getVersionId()
899
);
900
}
901
0 commit comments