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 gaugeColors = this.props.gaugeColors.filter(
|
||||
color => color.id !== threshold.id
|
||||
|
|
|
@ -65,7 +65,7 @@ class ThresholdsList extends Component {
|
|||
onResetFocus()
|
||||
}
|
||||
|
||||
handleDeleteThreshold = threshold => () => {
|
||||
handleDeleteThreshold = threshold => {
|
||||
const {
|
||||
handleUpdateThresholdsListColors,
|
||||
onResetFocus,
|
||||
|
|
Loading…
Reference in New Issue