Procházet zdrojové kódy

fixed annoying undefined length error

Ian Babrou před 11 roky
rodič
revize
e3b046aecf
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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;
     };