1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-05-26 01:17:00 +02:00

fix: now health widget will match will chart (#8432)

Now it will match with chart if no data.

Previous


![image](https://github.com/user-attachments/assets/48d9c19b-962f-45b9-ab6e-defacd53d90e)



Now


![image](https://github.com/user-attachments/assets/f0132890-9491-4f0e-a88b-e5444ca3eb6b)
This commit is contained in:
Jaanus Sellin 2024-10-11 14:33:46 +03:00 committed by GitHub
parent 226874fe23
commit a991cf4eff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -161,7 +161,7 @@ describe('useFilteredFlagTrends', () => {
stale: 0,
potentiallyStale: 0,
averageUsers: 0,
averageHealth: undefined,
averageHealth: '100',
medianTimeToProduction: undefined,
});
});
@ -214,7 +214,7 @@ describe('useFilteredFlagTrends', () => {
stale: 0,
potentiallyStale: 0,
averageUsers: 0,
averageHealth: undefined,
averageHealth: '100',
medianTimeToProduction: 5,
});
});

View File

@ -70,7 +70,7 @@ export const useFilteredFlagsSummary = (
averageUsers,
averageHealth: sum.total
? ((sum.active / (sum.total || 1)) * 100).toFixed(0)
: undefined,
: '100',
medianTimeToProduction,
};
}, [filteredProjectFlagTrends]);