File tree 2 files changed +2
-3
lines changed
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 992
992
"argocd" : {
993
993
"apps" : " Apps" ,
994
994
"synced" : " Synced" ,
995
- "outOfSync" : " OutOfSync " ,
995
+ "outOfSync" : " Out Of Sync " ,
996
996
"healthy" : " Healthy" ,
997
997
"degraded" : " Degraded" ,
998
998
"progressing" : " Progressing" ,
Original file line number Diff line number Diff line change @@ -20,9 +20,8 @@ export default function Component({ service }) {
20
20
if ( status === "apps" ) {
21
21
return { status, count : appsData ?. items ?. length } ;
22
22
}
23
- const apiStatus = status . charAt ( 0 ) . toUpperCase ( ) + status . slice ( 1 ) ;
24
23
const count = appsData ?. items ?. filter (
25
- ( item ) => item . status ?. sync ?. status === apiStatus || item . status ?. health ?. status === apiStatus ,
24
+ ( item ) => item . status ?. sync ?. status . toLowerCase ( ) === status . toLowerCase ( ) || item . status ?. health ?. status . toLowerCase ( ) === status . toLowerCase ( ) ,
26
25
) . length ;
27
26
return { status, count } ;
28
27
} ) ;
You can’t perform that action at this time.
0 commit comments