From c9936723c8d09af94b858cff2a692976068bb931 Mon Sep 17 00:00:00 2001 From: Henry Heino <46334387+personalizedrefrigerator@users.noreply.github.com> Date: Tue, 10 Jun 2025 16:14:08 -0700 Subject: [PATCH] Chore: Desktop: Fix layout-related warning shown in console on startup (#12452) --- packages/app-desktop/gui/Navigator.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/app-desktop/gui/Navigator.tsx b/packages/app-desktop/gui/Navigator.tsx index ddaff17d85..de7c200c51 100644 --- a/packages/app-desktop/gui/Navigator.tsx +++ b/packages/app-desktop/gui/Navigator.tsx @@ -56,7 +56,7 @@ const useWindowRefocusManager = (route: AppStateRoute) => { }; const useContainerSize = (container: HTMLElement|null) => { - const [size, setSize] = useState({ width: container?.clientWidth, height: container?.clientHeight }); + const [size, setSize] = useState({ width: container?.clientWidth ?? 0, height: container?.clientHeight ?? 0 }); useEffect(() => { if (!container) return () => {};