1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01: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;
}
export default connect((state, props) => ({
metrics: getMetricsForToggle(state, props.featureToggleName),
metrics: getMetricsForToggle(state, props.featureToggle.name),
}), {
fetchFeatureMetrics,
toggleFeature,