File tree 1 file changed +4
-2
lines changed
site/src/pages/HealthPage
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,9 @@ export function HealthPageView({
103
103
{ healthStatus . healthy
104
104
? Object . keys ( sections ) . some (
105
105
( key ) =>
106
- healthStatus [ key as keyof typeof sections ] ?. warnings
106
+ healthStatus [ key as keyof typeof sections ] . warnings !==
107
+ null &&
108
+ healthStatus [ key as keyof typeof sections ] . warnings
107
109
. length > 0 ,
108
110
)
109
111
? "All systems operational, but performance might be degraded"
@@ -163,7 +165,7 @@ export function HealthPageView({
163
165
const healthSection =
164
166
healthStatus [ key as keyof typeof sections ] ;
165
167
const isHealthy = healthSection . healthy ;
166
- const isWarning = healthSection . warnings . length > 0 ;
168
+ const isWarning = healthSection . warnings ? .length > 0 ;
167
169
return (
168
170
< Box
169
171
component = "button"
You can’t perform that action at this time.
0 commit comments