瀏覽代碼

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

Fixed annoying undefined length error
Torkel Ödegaard 11 年之前
父節點
當前提交
75fc0c7017
共有 1 個文件被更改,包括 2 次插入2 次删除
  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;
     };