Terminal tab auto-close fixes (#314)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2020-04-28 08:31:22 +03:00
1 parent 105021509c
commit b8fd4040a1
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)
})
}