Explorar o código

Fix for histogram without time filter

Rashid Khan %!s(int64=12) %!d(string=hai) anos
pai
achega
a118cf42ae
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      panels/histogram/module.js

+ 2 - 2
panels/histogram/module.js

@@ -327,8 +327,8 @@ angular.module('kibana.histogram', [])
                 timezone: scope.panel.timezone,
                 show: scope.panel['x-axis'],
                 mode: "time",
-                min: scope.range.from.getTime(),
-                max: scope.range.to.getTime(),
+                min: _.isUndefined(scope.range.from) ? null : scope.range.from.getTime(),
+                max: _.isUndefined(scope.range.to) ? null : scope.range.to.getTime(),
                 timeformat: time_format(scope.panel.interval),
                 label: "Datetime",
               },