Commit 60ec00ae by Peter Holmberg

update gauge on remove threshold

parent 201bd69a
......@@ -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) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment