From 570e42b7f769e9479f425e9709a08c4ae584387c Mon Sep 17 00:00:00 2001 From: brettkolodny Date: Wed, 19 Feb 2025 15:09:37 -0500 Subject: [PATCH] fix: rearrange render logic (#16631) Change the render logic so that we always show an error message if the error is available --- site/src/pages/HealthPage/HealthLayout.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site/src/pages/HealthPage/HealthLayout.tsx b/site/src/pages/HealthPage/HealthLayout.tsx index 33ca8cbe31..c520fd764f 100644 --- a/site/src/pages/HealthPage/HealthLayout.tsx +++ b/site/src/pages/HealthPage/HealthLayout.tsx @@ -47,7 +47,7 @@ export const HealthLayout: FC = () => { const link = useClassName(classNames.link, []); const activeLink = useClassName(classNames.activeLink, []); - if (isLoading || !healthStatus) { + if (isLoading) { return (
@@ -55,7 +55,7 @@ export const HealthLayout: FC = () => { ); } - if (error) { + if (error || !healthStatus) { return (