Fix function signature for threshold deletion
parent
0a913a5db2
commit
199619c1e2
|
@ -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
|
||||||
|
|
|
@ -65,7 +65,7 @@ class ThresholdsList extends Component {
|
||||||
onResetFocus()
|
onResetFocus()
|
||||||
}
|
}
|
||||||
|
|
||||||
handleDeleteThreshold = threshold => () => {
|
handleDeleteThreshold = threshold => {
|
||||||
const {
|
const {
|
||||||
handleUpdateThresholdsListColors,
|
handleUpdateThresholdsListColors,
|
||||||
onResetFocus,
|
onResetFocus,
|
||||||
|
|
Loading…
Reference in New Issue