1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-05-31 01:16:01 +02:00

fix: feature overview env count should only count enabled (#2521)

https://linear.app/unleash/issue/2-457/fix-feature-overview-sidepanel-environment-counter-to-only-include
This commit is contained in:
Nuno Góis 2022-11-24 14:43:29 +00:00 committed by GitHub
parent 492950e0a8
commit 3f881caa37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,13 @@ export const FeatureOverviewSidePanel = () => {
<FeatureOverviewSidePanelEnvironmentSwitches
header={
<StyledHeader data-loading>
Enabled in environments ({feature.environments.length})
Enabled in environments (
{
feature.environments.filter(
({ enabled }) => enabled
).length
}
)
<HelpIcon
tooltip="When a feature is switched off in an environment, it will always return false. When switched on, it will return true or false depending on its strategies."
placement="top"