From dadd133459123c359dd64f50433a0ab9489b054d Mon Sep 17 00:00:00 2001 From: Alex P Date: Fri, 8 Dec 2017 14:54:14 -0800 Subject: [PATCH] Do not enforce min and max values for single-stat thresholds --- ui/src/dashboards/components/CellEditorOverlay.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/src/dashboards/components/CellEditorOverlay.js b/ui/src/dashboards/components/CellEditorOverlay.js index 5ccdc0bf9d..c43dcf2112 100644 --- a/ui/src/dashboards/components/CellEditorOverlay.js +++ b/ui/src/dashboards/components/CellEditorOverlay.js @@ -139,7 +139,11 @@ class CellEditorOverlay extends Component { } handleValidateColorValue = (threshold, e) => { - const {colors} = this.state + const {colors, cellWorkingType} = this.state + if (cellWorkingType === 'single-stat') { + // If type is single-stat then validation doesn't matter + return true + } const sortedColors = _.sortBy(colors, color => Number(color.value)) const targetValueNumber = Number(e.target.value)