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:
parent
492950e0a8
commit
3f881caa37
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user