Explorar o código

Graph: series tooltip length check

Torkel Ödegaard %!s(int64=11) %!d(string=hai) anos
pai
achega
c6cb01aa3b
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/app/directives/grafanaGraph.tooltip.js

+ 4 - 0
src/app/directives/grafanaGraph.tooltip.js

@@ -120,6 +120,10 @@ function ($) {
         scope.appEvent('setCrosshair',  { pos: pos, scope: scope });
         scope.appEvent('setCrosshair',  { pos: pos, scope: scope });
       }
       }
 
 
+      if (seriesList.length === 0) {
+        return;
+      }
+
       if (scope.panel.tooltip.shared) {
       if (scope.panel.tooltip.shared) {
         plot.unhighlight();
         plot.unhighlight();