mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Make sure we do not change -Infinity
This commit is contained in:
parent
5448b72f7c
commit
c17ccf2289
@ -105,7 +105,7 @@ export class ThresholdsEditor extends PureComponent<Props, State> {
|
||||
const value = isNaN(parsedValue) ? null : parsedValue;
|
||||
|
||||
const newThresholds = thresholds.map(t => {
|
||||
if (t === threshold) {
|
||||
if (t === threshold && t.index !== 0) {
|
||||
t = { ...t, value: value as number };
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user