diff --git a/frontend/src/component/feature/metric-container.jsx b/frontend/src/component/feature/metric-container.jsx index 89bfff15bc..077775fe84 100644 --- a/frontend/src/component/feature/metric-container.jsx +++ b/frontend/src/component/feature/metric-container.jsx @@ -22,9 +22,8 @@ function getMetricsForToggle (state, toggleName) { return result; } - export default connect((state, props) => ({ - metrics: getMetricsForToggle(state, props.featureToggleName), + metrics: getMetricsForToggle(state, props.featureToggle.name), }), { fetchFeatureMetrics, toggleFeature,