Explorar o código

Merge pull request #256 from bobrik/undefined-length-fix

Fixed annoying undefined length error
Torkel Ödegaard %!s(int64=11) %!d(string=hai) anos
pai
achega
75fc0c7017
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/app/panels/graphite/module.js

+ 2 - 2
src/app/panels/graphite/module.js

@@ -318,9 +318,9 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
         if (last - from < -10000) {
           $scope.datapointsOutside = true;
         }
-      }
 
-      $scope.datapointsCount += datapoints.length;
+        $scope.datapointsCount += datapoints.length;
+      }
 
       return series;
     };