Commit ed8f7c3c by Rashid Khan

Merge pull request #304 from rashidkpc/master

Add default loading to service to fix dashboards with missing services
parents 068e2406 355e8c85
......@@ -491,7 +491,6 @@ angular.module('kibana.services', [])
window.localStorage['dashboard'] !== ''
) {
var dashboard = JSON.parse(window.localStorage['dashboard']);
_.defaults(dashboard,_dash);
self.dash_load(dashboard);
// No? Ok, grab default.json, its all we have now
} else {
......@@ -532,6 +531,9 @@ angular.module('kibana.services', [])
// Cancel all timers
timer.cancel_all();
// Make sure the dashboard being loaded has everything required
_.defaults(dashboard,_dash);
// If not using time based indices, use the default index
if(dashboard.index.interval === 'none') {
self.indices = [dashboard.index.default];
......
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