diff --git a/public/app/plugins/panel/gauge/Threshold.test.tsx b/public/app/plugins/panel/gauge/Threshold.test.tsx index 642debecd0b..4ada2dcb5fd 100644 --- a/public/app/plugins/panel/gauge/Threshold.test.tsx +++ b/public/app/plugins/panel/gauge/Threshold.test.tsx @@ -38,8 +38,8 @@ describe('Add threshold', () => { instance.onAddThreshold(1); expect(instance.state.thresholds).toEqual([ - { index: 0, value: 50, color: 'rgb(127, 115, 64)' }, { index: 1, value: 75, color: 'rgb(170, 95, 61)' }, + { index: 0, value: 50, color: 'rgb(127, 115, 64)' }, ]); }); }); diff --git a/public/app/plugins/panel/gauge/Thresholds.tsx b/public/app/plugins/panel/gauge/Thresholds.tsx index 7f15727066e..b5a929f4811 100644 --- a/public/app/plugins/panel/gauge/Thresholds.tsx +++ b/public/app/plugins/panel/gauge/Thresholds.tsx @@ -23,8 +23,6 @@ export default class Thresholds extends PureComponent const { maxValue, minValue } = this.props.options; const { thresholds } = this.state; - console.log('add at index:', index); - const newThresholds = thresholds.map(threshold => { if (threshold.index >= index) { threshold = { ...threshold, index: threshold.index + 1 };