mirror of
https://github.com/Unleash/unleash.git
synced 2025-06-14 01:16:17 +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
|
<FeatureOverviewSidePanelEnvironmentSwitches
|
||||||
header={
|
header={
|
||||||
<StyledHeader data-loading>
|
<StyledHeader data-loading>
|
||||||
Enabled in environments ({feature.environments.length})
|
Enabled in environments (
|
||||||
|
{
|
||||||
|
feature.environments.filter(
|
||||||
|
({ enabled }) => enabled
|
||||||
|
).length
|
||||||
|
}
|
||||||
|
)
|
||||||
<HelpIcon
|
<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."
|
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"
|
placement="top"
|
||||||
|
Loading…
Reference in New Issue
Block a user