Do not enforce min and max values for single-stat thresholds
parent
739a661d5a
commit
dadd133459
|
@ -139,7 +139,11 @@ class CellEditorOverlay extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
handleValidateColorValue = (threshold, e) => {
|
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 sortedColors = _.sortBy(colors, color => Number(color.value))
|
||||||
const targetValueNumber = Number(e.target.value)
|
const targetValueNumber = Number(e.target.value)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue