From f44ac5c30ca245faba025eace4c8563e518d3931 Mon Sep 17 00:00:00 2001 From: sveisvei Date: Thu, 22 Dec 2016 10:42:52 +0100 Subject: [PATCH] fix metrics loading --- frontend/src/component/feature/metric-container.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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,