We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 912f2be commit 8f7e289Copy full SHA for 8f7e289
site/src/pages/HealthPage/HealthLayout.tsx
@@ -47,18 +47,18 @@ export const HealthLayout: FC = () => {
47
const link = useClassName(classNames.link, []);
48
const activeLink = useClassName(classNames.activeLink, []);
49
50
- if (error) {
+ if (isLoading) {
51
return (
52
<div className="p-6">
53
- <ErrorAlert error={error} />
+ <Loader />
54
</div>
55
);
56
}
57
58
- if (isLoading || !healthStatus) {
+ if (error || !healthStatus) {
59
60
61
- <Loader />
+ <ErrorAlert error={error} />
62
63
64
0 commit comments