We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4d55cb commit 9055375Copy full SHA for 9055375
castellan-admin/src/components/Dashboard.tsx
@@ -800,7 +800,15 @@ export const Dashboard = React.memo(() => {
800
) : (
801
<Box>
802
<Typography variant="h4" color="success.main">
803
- {systemStatus.filter(s => s.status === 'healthy').length}/{systemStatus.length}
+ {(() => {
804
+ const healthyCount = systemStatus.filter(s => s.status && s.status.toLowerCase() === 'healthy').length;
805
+ console.log('🔍 System Health Debug:', {
806
+ totalServices: systemStatus.length,
807
+ healthyCount,
808
+ statuses: systemStatus.map(s => s.status)
809
+ });
810
+ return `${healthyCount}/${systemStatus.length}`;
811
+ })()}
812
</Typography>
813
<Typography variant="body2" color="text.secondary">
814
Healthy Services
0 commit comments