UI - Fix host count (#13276)

## Addresses #13277 

<img width="642" alt="Screenshot 2023-08-10 at 11 22 19 AM"
src="https://github.com/fleetdm/fleet/assets/61553566/3f7e4b47-c0ef-4f52-9aed-75adcf12ab61">
<img width="649" alt="Screenshot 2023-08-10 at 11 22 49 AM"
src="https://github.com/fleetdm/fleet/assets/61553566/55cf79ca-fbb2-42e8-a545-de30b55fb8f5">

- [x] Manual QA

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
This commit is contained in:
Jacob Shandling 2023-08-10 11:40:43 -07:00 committed by GitHub
parent 21b21abd22
commit 948ae13507
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,9 @@ const useInfoCard = ({
<div className={`${baseClass}__section-title-group`}>
<div className={`${baseClass}__section-title`}>
<h2>{title}</h2>
{total_host_count && <span>{total_host_count}</span>}
{total_host_count !== undefined && (
<span>{total_host_count}</span>
)}
</div>
{titleDetail && (
<div className={`${baseClass}__section-title-detail`}>