From 4232d7f289a8b8bddf688bc1adc90212e3a33f7d Mon Sep 17 00:00:00 2001 From: Andrew Couch Date: Wed, 23 May 2018 16:37:46 -0400 Subject: [PATCH] ui: fix action names broken by #25823 In that PR, I mechanically replaced identifiers when there were new warnings about shadowing, but in two places I accidentally changed semantics due to the shorthand form of object literals. :man_facepalming: Release note: None --- pkg/ui/src/views/devtools/containers/raftMessages/index.tsx | 4 ++-- .../src/views/shared/containers/metricDataProvider/index.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/ui/src/views/devtools/containers/raftMessages/index.tsx b/pkg/ui/src/views/devtools/containers/raftMessages/index.tsx index 17ca62862f30..c2fd00128268 100644 --- a/pkg/ui/src/views/devtools/containers/raftMessages/index.tsx +++ b/pkg/ui/src/views/devtools/containers/raftMessages/index.tsx @@ -176,7 +176,7 @@ function mapStateToProps(state: AdminUIState) { const actions = { refreshNodes, refreshLiveness, - hoverOnAction, - hoverOffAction, + hoverOn: hoverOnAction, + hoverOff: hoverOffAction, }; export default connect(mapStateToProps, actions)(NodeGraphs); diff --git a/pkg/ui/src/views/shared/containers/metricDataProvider/index.tsx b/pkg/ui/src/views/shared/containers/metricDataProvider/index.tsx index 0460f4865394..5d2d1dbf5858 100644 --- a/pkg/ui/src/views/shared/containers/metricDataProvider/index.tsx +++ b/pkg/ui/src/views/shared/containers/metricDataProvider/index.tsx @@ -223,7 +223,7 @@ const metricsDataProviderConnected = connect( }; }, { - requestMetricsAction, + requestMetrics: requestMetricsAction, }, )(MetricsDataProvider);