Skip to content

Commit 8f7e289

Browse files
committed
fix: rearrange
1 parent 912f2be commit 8f7e289

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

site/src/pages/HealthPage/HealthLayout.tsx

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

50-
if (error) {
50+
if (isLoading) {
5151
return (
5252
<div className="p-6">
53-
<ErrorAlert error={error} />
53+
<Loader />
5454
</div>
5555
);
5656
}
5757

58-
if (isLoading || !healthStatus) {
58+
if (error || !healthStatus) {
5959
return (
6060
<div className="p-6">
61-
<Loader />
61+
<ErrorAlert error={error} />
6262
</div>
6363
);
6464
}

0 commit comments

Comments
 (0)