mirror of
https://github.com/Unleash/unleash.git
synced 2025-06-14 01:16:17 +02: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>
|
<StyledStatsRow>
|
||||||
<StyledIcon />
|
<StyledIcon />
|
||||||
Instance health
|
Instance health
|
||||||
<StyledMainValue>{`${value}%`}</StyledMainValue>
|
<StyledMainValue>{`${value || 0}%`}</StyledMainValue>
|
||||||
</StyledStatsRow>
|
</StyledStatsRow>
|
||||||
</StyledSection>
|
</StyledSection>
|
||||||
<Divider />
|
<Divider />
|
||||||
<StyledSection>
|
<StyledSection>
|
||||||
<StyledStatsRow>
|
<StyledStatsRow>
|
||||||
Healthy flags
|
Healthy flags
|
||||||
<StyledValue>{healthy}</StyledValue>
|
<StyledValue>{healthy || 0}</StyledValue>
|
||||||
</StyledStatsRow>
|
</StyledStatsRow>
|
||||||
<StyledStatsRow>
|
<StyledStatsRow>
|
||||||
Stale flags
|
Stale flags
|
||||||
<StyledValue>{stale}</StyledValue>
|
<StyledValue>{stale || 0}</StyledValue>
|
||||||
</StyledStatsRow>
|
</StyledStatsRow>
|
||||||
<StyledStatsRow>
|
<StyledStatsRow>
|
||||||
Potencially stale flags
|
Potencially stale flags
|
||||||
<StyledValue>{potentiallyStale}</StyledValue>
|
<StyledValue>{potentiallyStale || 0}</StyledValue>
|
||||||
</StyledStatsRow>
|
</StyledStatsRow>
|
||||||
</StyledSection>
|
</StyledSection>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user