From 6b4229686575ea1bf47134763e26ada7c790d0c7 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 29 Jun 2019 17:48:35 -0700 Subject: [PATCH] Correctly listen for unmount event --- resources/scripts/components/server/Console.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/scripts/components/server/Console.tsx b/resources/scripts/components/server/Console.tsx index 1f43f1bf2..8f23c4a3a 100644 --- a/resources/scripts/components/server/Console.tsx +++ b/resources/scripts/components/server/Console.tsx @@ -4,7 +4,6 @@ import * as TerminalFit from 'xterm/lib/addons/fit/fit'; import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; import { State, useStoreState } from 'easy-peasy'; import { ApplicationState } from '@/state/types'; -import { connect } from 'formik'; const theme = { background: 'transparent', @@ -68,7 +67,7 @@ export default () => { instance.removeListener('server log', handleServerLog); instance.removeListener('console output', handleConsoleOutput); } - }); + }, []); return (