Skip to content

Commit 6b42296

Browse files
committed
Correctly listen for unmount event
1 parent 48f449e commit 6b42296

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

resources/scripts/components/server/Console.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import * as TerminalFit from 'xterm/lib/addons/fit/fit';
44
import SpinnerOverlay from '@/components/elements/SpinnerOverlay';
55
import { State, useStoreState } from 'easy-peasy';
66
import { ApplicationState } from '@/state/types';
7-
import { connect } from 'formik';
87

98
const theme = {
109
background: 'transparent',
@@ -68,7 +67,7 @@ export default () => {
6867
instance.removeListener('server log', handleServerLog);
6968
instance.removeListener('console output', handleConsoleOutput);
7069
}
71-
});
70+
}, []);
7271

7372
return (
7473
<div className={'text-xs font-mono relative'}>

0 commit comments

Comments
 (0)