mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
fix: health stats number (#7688)
Prevent showing "undefined%" in new Health statistics.
This commit is contained in:
parent
5c4bc6f7a0
commit
d825b49f43
@ -61,22 +61,22 @@ export const HealthStats: FC<IHealthStatsProps> = ({
|
||||
<StyledStatsRow>
|
||||
<StyledIcon />
|
||||
Instance health
|
||||
<StyledMainValue>{`${value}%`}</StyledMainValue>
|
||||
<StyledMainValue>{`${value || 0}%`}</StyledMainValue>
|
||||
</StyledStatsRow>
|
||||
</StyledSection>
|
||||
<Divider />
|
||||
<StyledSection>
|
||||
<StyledStatsRow>
|
||||
Healthy flags
|
||||
<StyledValue>{healthy}</StyledValue>
|
||||
<StyledValue>{healthy || 0}</StyledValue>
|
||||
</StyledStatsRow>
|
||||
<StyledStatsRow>
|
||||
Stale flags
|
||||
<StyledValue>{stale}</StyledValue>
|
||||
<StyledValue>{stale || 0}</StyledValue>
|
||||
</StyledStatsRow>
|
||||
<StyledStatsRow>
|
||||
Potencially stale flags
|
||||
<StyledValue>{potentiallyStale}</StyledValue>
|
||||
<StyledValue>{potentiallyStale || 0}</StyledValue>
|
||||
</StyledStatsRow>
|
||||
</StyledSection>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user