fix: add condition for noDatapoints state

- see #134
This commit is contained in:
Ivan Mikheykin
2020-10-10 13:30:27 +03:00
parent 3b0d119113
commit 7cc09175f0
6 changed files with 12 additions and 10 deletions
+2 -2
View File
@@ -72,12 +72,12 @@ coreModule.directive('statusHeatmapLegend', function() {
let minValue = panel.color.min != null ? panel.color.min : rangeFrom;
if (ctrl.bucketMatrix.noDatapoints) {
if (!panel.color.max) {
if (panel.color.max != null) {
rangeTo = maxValue = 100;
} else {
rangeTo = 100;
}
if (!panel.color.min) {
if (panel.color.min != null) {
rangeFrom = minValue = 0;
} else {
rangeFrom = 0;