浏览代码

Reopening a notebook with an active session throws an error

Borys Palka 5 年之前
父节点
当前提交
864bfa1beb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/handlers/cell.ts

+ 1 - 1
src/handlers/cell.ts

@@ -74,7 +74,7 @@ export class CellManager implements IDisposable {
   }
 
   private showCurrentLine(lineNumber: number) {
-    if (!this.activeCell) {
+    if (!this.activeCell || !this.activeCell.inputArea) {
       return;
     }
     const editor = this.activeCell.editor as CodeMirrorEditor;