Merge pull request #3194 from influxdata/fix-threshold-removal

Fix function signature for threshold deletion
pull/10616/head
Brandon Farmer 2018-04-12 17:23:54 -07:00 committed by GitHub
commit e5f2bf56c9
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ class GaugeOptions extends Component {
} }
} }
handleDeleteThreshold = threshold => () => { handleDeleteThreshold = threshold => {
const {handleUpdateGaugeColors, onResetFocus} = this.props const {handleUpdateGaugeColors, onResetFocus} = this.props
const gaugeColors = this.props.gaugeColors.filter( const gaugeColors = this.props.gaugeColors.filter(
color => color.id !== threshold.id color => color.id !== threshold.id

View File

@ -65,7 +65,7 @@ class ThresholdsList extends Component {
onResetFocus() onResetFocus()
} }
handleDeleteThreshold = threshold => () => { handleDeleteThreshold = threshold => {
const { const {
handleUpdateThresholdsListColors, handleUpdateThresholdsListColors,
onResetFocus, onResetFocus,