From f573736b7fa83b67e229573a122ada6ecd2d6092 Mon Sep 17 00:00:00 2001 From: Steve Dunham Date: Tue, 3 Dec 2024 16:41:33 -0800 Subject: [PATCH] don't switch to empty console --- playground/src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playground/src/main.ts b/playground/src/main.ts index 131fcbb..7a768c9 100644 --- a/playground/src/main.ts +++ b/playground/src/main.ts @@ -193,7 +193,7 @@ function Tabs() { }; useEffect(() => { - if (state.messages.value) setSelected(CONSOLE); + if (state.messages.value.length) setSelected(CONSOLE); }, [state.messages.value]); let body;