mirror of
https://github.com/timberjoegithub/grafana-statusmap.git
synced 2026-07-21 23:42:03 +00:00
relax conditions for discrete mode
This commit is contained in:
@@ -15,7 +15,7 @@ export class ColorModeDiscrete {
|
|||||||
|
|
||||||
for (let i = 0; i < thresholds.length; i++) {
|
for (let i = 0; i < thresholds.length; i++) {
|
||||||
for (let j = 0; j < values.length; j++) {
|
for (let j = 0; j < values.length; j++) {
|
||||||
if (values[j] === thresholds[i].value) {
|
if (values[j] == thresholds[i].value) {
|
||||||
tooltips.push(thresholds[i].tooltip);
|
tooltips.push(thresholds[i].tooltip);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -64,7 +64,7 @@ export class ColorModeDiscrete {
|
|||||||
getMatchedThreshold(value) {
|
getMatchedThreshold(value) {
|
||||||
let thresholds = this.panel.color.thresholds;
|
let thresholds = this.panel.color.thresholds;
|
||||||
for (let k = 0; k < thresholds.length; k++) {
|
for (let k = 0; k < thresholds.length; k++) {
|
||||||
if (value === thresholds[k].value) {
|
if (value == thresholds[k].value) {
|
||||||
return thresholds[k];
|
return thresholds[k];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user