File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ const useManagedTermimal = (
47
47
tabOutRef : HTMLElement ,
48
48
fontSizePt : number
49
49
) : void => {
50
- const parent = ref . current ;
51
50
const actionFeedback = useActionFeedback ( ) ;
52
51
const codeFontFamily = useToken ( "fonts" , "code" ) ;
53
52
const device = useDevice ( ) ;
@@ -58,6 +57,7 @@ const useManagedTermimal = (
58
57
const initialFontSizeRef = useRef < number > ( fontSizePt ) ;
59
58
60
59
useEffect ( ( ) => {
60
+ const parent = ref . current ;
61
61
if ( ! parent ) {
62
62
return ;
63
63
}
@@ -188,11 +188,11 @@ const useManagedTermimal = (
188
188
currentTerminalRef ,
189
189
device ,
190
190
isUnmounted ,
191
- parent ,
192
191
setSelection ,
193
192
fitAddon ,
194
193
initialFontSizeRef ,
195
194
tabOutRef ,
195
+ ref ,
196
196
] ) ;
197
197
198
198
useEffect ( ( ) => {
You can’t perform that action at this time.
0 commit comments