From 60ec00ae52888e756935e482ce7e63f5686b5880 Mon Sep 17 00:00:00 2001 From: Peter Holmberg Date: Thu, 29 Nov 2018 15:07:31 +0100 Subject: [PATCH] update gauge on remove threshold --- public/app/plugins/panel/gauge/Thresholds.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/public/app/plugins/panel/gauge/Thresholds.tsx b/public/app/plugins/panel/gauge/Thresholds.tsx index fe929e1cb5f..56f84621770 100644 --- a/public/app/plugins/panel/gauge/Thresholds.tsx +++ b/public/app/plugins/panel/gauge/Thresholds.tsx @@ -46,9 +46,12 @@ export default class Thresholds extends PureComponent { - 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) => {