From 4de6cd653edcd1c22ffcf398e7b522847b003232 Mon Sep 17 00:00:00 2001 From: Alex P Date: Tue, 5 Jun 2018 14:14:31 -0700 Subject: [PATCH] Remove excess closure --- ui/src/dashboards/components/GaugeOptions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/dashboards/components/GaugeOptions.js b/ui/src/dashboards/components/GaugeOptions.js index 0145c366a8..bb378cd57f 100644 --- a/ui/src/dashboards/components/GaugeOptions.js +++ b/ui/src/dashboards/components/GaugeOptions.js @@ -72,12 +72,12 @@ class GaugeOptions extends Component { onResetFocus() } - handleChooseColor = threshold => chosenColor => { + handleChooseColor = threshold => { const {handleUpdateGaugeColors} = this.props const gaugeColors = this.props.gaugeColors.map( color => color.id === threshold.id - ? {...color, hex: chosenColor.hex, name: chosenColor.name} + ? {...color, hex: threshold.hex, name: threshold.name} : color )