Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit570e42b

Browse files
authored
fix: rearrange render logic (#16631)
Change the render logic so that we always show an error message if theerror is available
1 parentdeadac0 commit570e42b

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
constlink=useClassName(classNames.link,[]);
4848
constactiveLink=useClassName(classNames.activeLink,[]);
4949

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

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp