1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-23 13:46:45 +02:00

fix metrics loading

This commit is contained in:
sveisvei 2016-12-22 10:42:52 +01:00
parent 0eaa10f97f
commit f44ac5c30c

View File

@ -22,9 +22,8 @@ function getMetricsForToggle (state, toggleName) {
return result; return result;
} }
export default connect((state, props) => ({ export default connect((state, props) => ({
metrics: getMetricsForToggle(state, props.featureToggleName), metrics: getMetricsForToggle(state, props.featureToggle.name),
}), { }), {
fetchFeatureMetrics, fetchFeatureMetrics,
toggleFeature, toggleFeature,