mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
update gauge on remove threshold
This commit is contained in:
@@ -46,9 +46,12 @@ export default class Thresholds extends PureComponent<PanelOptionsProps<OptionsP
|
||||
};
|
||||
|
||||
onRemoveThreshold = threshold => {
|
||||
this.setState(prevState => ({
|
||||
thresholds: prevState.thresholds.filter(t => t !== threshold),
|
||||
}));
|
||||
this.setState(
|
||||
prevState => ({
|
||||
thresholds: prevState.thresholds.filter(t => t !== threshold),
|
||||
}),
|
||||
() => this.updateGauge()
|
||||
);
|
||||
};
|
||||
|
||||
onChangeThresholdValue = (event, threshold) => {
|
||||
|
||||
Reference in New Issue
Block a user