Skip to content

chore(site): clean up mocks after each test #12805

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Apr 1, 2024
Prev Previous commit
Rollback config is loading
  • Loading branch information
BrunoQuaresma committed Apr 1, 2024
commit 91abb66153e5d4da62ea20b6381ed229964fe38e
4 changes: 2 additions & 2 deletions site/src/pages/TerminalPage/TerminalPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const TerminalPage: FC = () => {
// Create the terminal!
const fitAddonRef = useRef<FitAddon>();
useEffect(() => {
if (!terminalWrapperRef.current || !renderer) {
if (!terminalWrapperRef.current || config.isLoading) {
return;
}
const terminal = new XTerm.Terminal({
Expand Down Expand Up @@ -135,7 +135,7 @@ const TerminalPage: FC = () => {
window.removeEventListener("resize", listener);
terminal.dispose();
};
}, [renderer, theme.palette.background.default]);
}, [config.isLoading, renderer, theme.palette.background.default]);

// Updates the reconnection token into the URL if necessary.
useEffect(() => {
Expand Down