Преглед на файлове

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;