Commit e832519d by Rashid Khan

Potential fix for #621

parent f1943362
...@@ -184,17 +184,19 @@ function (angular, $, kbn, _, config, moment, Modernizr) { ...@@ -184,17 +184,19 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
// Set the current dashboard // Set the current dashboard
self.current = _.clone(dashboard); self.current = _.clone(dashboard);
// Ok, now that we've setup the current dashboard, we can inject our services // Delay this until we're sure that querySrv and filterSrv are ready
querySrv = $injector.get('querySrv'); $timeout(function() {
filterSrv = $injector.get('filterSrv'); // Ok, now that we've setup the current dashboard, we can inject our services
querySrv = $injector.get('querySrv');
// Make sure these re-init filterSrv = $injector.get('filterSrv');
querySrv.init();
filterSrv.init(); // Make sure these re-init
querySrv.init();
// If there's an interval set, the indices have not been calculated yet, filterSrv.init();
// so there is no data. Call refresh to calculate the indices and notify the panels. },0).then(function() {
self.refresh(); // Call refresh to calculate the indices and notify the panels that we're ready to roll
self.refresh();
});
if(dashboard.refresh) { if(dashboard.refresh) {
self.set_interval(dashboard.refresh); self.set_interval(dashboard.refresh);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment