Skip to content

Commit

Permalink
fix: provide default value in web terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewgallo committed Jan 15, 2025
1 parent 063dcdd commit 95d0b70
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export let WebTerminal = React.forwardRef(
}: WebTerminalProps,
ref: ForwardedRef<HTMLDivElement>
) => {
const localRef = useRef<HTMLDivElement>();
const localRef = useRef<HTMLDivElement | null>(null);
const webTerminalRef = (ref ??
localRef) as MutableRefObject<HTMLElementStyled>;

Expand Down

0 comments on commit 95d0b70

Please sign in to comment.