Skip to content

Commit 570e42b

Browse files
authored
fix: rearrange render logic (#16631)
Change the render logic so that we always show an error message if the error is available
1 parent deadac0 commit 570e42b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/src/pages/HealthPage/HealthLayout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ export const HealthLayout: FC = () => {
4747
const link = useClassName(classNames.link, []);
4848
const activeLink = useClassName(classNames.activeLink, []);
4949

50-
if (isLoading || !healthStatus) {
50+
if (isLoading) {
5151
return (
5252
<div className="p-6">
5353
<Loader />
5454
</div>
5555
);
5656
}
5757

58-
if (error) {
58+
if (error || !healthStatus) {
5959
return (
6060
<div className="p-6">
6161
<ErrorAlert error={error} />

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy