relax conditions for discrete mode

This commit is contained in:
Ivan Mikheykin
2018-08-29 17:51:55 +03:00
parent 0d7289d3d7
commit a8e2a8fabe
+2 -2
View File
@@ -15,7 +15,7 @@ export class ColorModeDiscrete {
for (let i = 0; i < thresholds.length; i++) {
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);
}
}
@@ -64,7 +64,7 @@ export class ColorModeDiscrete {
getMatchedThreshold(value) {
let thresholds = this.panel.color.thresholds;
for (let k = 0; k < thresholds.length; k++) {
if (value === thresholds[k].value) {
if (value == thresholds[k].value) {
return thresholds[k];
}
}