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 de6f24c commit 7dbc6ecCopy full SHA for 7dbc6ec
src/vs/workbench/contrib/notebook/browser/notebookBrowser.ts
@@ -806,7 +806,7 @@ export function getNotebookEditorFromEditorPane(editorPane?: IEditorPane): INote
806
const input = editorPane.input;
807
808
if (input && isCompositeNotebookEditorInput(input)) {
809
- return (editorPane.getControl() as { notebookEditor: INotebookEditor | undefined }).notebookEditor;
+ return (editorPane.getControl() as { notebookEditor: INotebookEditor | undefined } | undefined)?.notebookEditor;
810
}
811
812
return undefined;
0 commit comments