Tyler Tolley 8 anni fa
parent
commit
ca3c1d8c63
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      public/app/plugins/panel/heatmap/heatmap_tooltip.ts

+ 3 - 3
public/app/plugins/panel/heatmap/heatmap_tooltip.ts

@@ -157,11 +157,11 @@ export class HeatmapTooltip {
       return x-bucket.x <= data.xBucketSize && x-bucket.x >0;
     });
     let xBucketIndex;
-    if(!xBucket)
+    if (!xBucket) {
       xBucketIndex = getValueBucketBound(x, data.xBucketSize, 1);
-    else
+    } else {
       xBucketIndex = xBucket.x;
-
+    }
     return xBucketIndex;
   }