Преглед изворни кода

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;