more tab saving fixes

This commit is contained in:
Eugene Pankov 2020-02-05 14:52:33 +03:00
parent bfd34df41e
commit 9c19307181
2 changed files with 2 additions and 2 deletions

View file

@ -69,7 +69,7 @@ export class SSHTabComponent extends BaseTerminalTabComponent {
return {
type: 'app:ssh-tab',
connection: this.connection,
savedState: this.frontend.saveState(),
savedState: this.frontend?.saveState(),
}
}

View file

@ -65,7 +65,7 @@ export class TerminalTabComponent extends BaseTerminalTabComponent {
...this.sessionOptions,
cwd: cwd || this.sessionOptions.cwd,
},
savedState: this.frontend.saveState(),
savedState: this.frontend?.saveState(),
}
}