1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-24 17:51:14 +02:00
This commit is contained in:
Thomas Heartman 2025-09-24 14:23:38 +02:00 committed by GitHub
commit 2460eb12ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -84,7 +84,7 @@ export const LifecycleFilters = ({
: allFlagsCount || undefined; : allFlagsCount || undefined;
const dynamicLabel = const dynamicLabel =
isActive && Number.isInteger(total) isActive && Number.isInteger(total)
? `${label} (${total === count ? total : `${total} of ${count}`})` ? `${label} (${total === (count ?? 0) ? total : `${total} of ${count}`})`
: `${label}${count !== undefined ? ` (${count})` : ''}`; : `${label}${count !== undefined ? ` (${count})` : ''}`;
const handleClick = () => const handleClick = () =>