Do not enforce min and max values for single-stat thresholds

pull/10616/head
Alex P 2017-12-08 14:54:14 -08:00
parent 739a661d5a
commit dadd133459
1 changed files with 5 additions and 1 deletions

View File

@ -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)