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 da267eb commit 7e67db3Copy full SHA for 7e67db3
packages/app/src/app/components/CodeEditor/VSCode/index.tsx
@@ -1072,15 +1072,9 @@ export class VSCode extends React.Component<Props> implements Editor {
1072
this.props.onChange(newCode, currentModuleShortid);
1073
}
1074
1075
- if (currentModuleShortid === this.currentModule.shortid) {
1076
- this.lint(
1077
- newCode,
1078
- currentModuleTitle,
1079
- this.editor
1080
- .getActiveCodeEditor()
1081
- .getModel()
1082
- .getVersionId()
1083
- );
+ const editor = this.editor.getActiveCodeEditor();
+ if (currentModuleShortid === this.currentModule.shortid && editor) {
+ this.lint(newCode, currentModuleTitle, editor.getModel().getVersionId());
1084
1085
};
1086
0 commit comments