terminal tab auto-close fixes

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen committed 2020-04-26 18:14:55 +03:00
1 parent 6d4a7f657d
commit 3d26664dea
2 files changed
+15 -3

No files matched your search

@@ -16,7 +16,7 @@ interface Props extends DockTabProps {
@observer
export class TerminalTab extends React.Component<Props> {
componentDidMount() {
reaction(() => this.isDisconnected, () => {
reaction(() => this.isDisconnected === true, () => {
dockStore.closeTab(this.tabId)
})
}