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  Now 
This commit is contained in:
parent
226874fe23
commit
a991cf4eff
@ -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,
|
||||
});
|
||||
});
|
||||
|
@ -70,7 +70,7 @@ export const useFilteredFlagsSummary = (
|
||||
averageUsers,
|
||||
averageHealth: sum.total
|
||||
? ((sum.active / (sum.total || 1)) * 100).toFixed(0)
|
||||
: undefined,
|
||||
: '100',
|
||||
medianTimeToProduction,
|
||||
};
|
||||
}, [filteredProjectFlagTrends]);
|
||||
|
Loading…
Reference in New Issue
Block a user