소스 검색

fix(singestat): fixed missing sparklines, caused by recent changes to time range handling, fixes #2815

Torkel Ödegaard 10 년 전
부모
커밋
9da5ef3cbf
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      public/app/panels/singlestat/singleStatPanel.js

+ 2 - 2
public/app/panels/singlestat/singleStatPanel.js

@@ -122,8 +122,8 @@ function (angular, app, _, $) {
             xaxis: {
               show: false,
               mode: "time",
-              min: scope.range.from.getTime(),
-              max: scope.range.to.getTime(),
+              min: scope.range.from.valueOf(),
+              max: scope.range.to.valueOf(),
             },
             grid: { hoverable: false, show: false },
           };