Commit fadcce70 by Rashid Khan

Fixed setting default query color from scripted dashboards

parent 58c65616
......@@ -137,6 +137,7 @@ function (angular, _, config, kbn) {
// Check each query object, populate its defaults
_.each(self.list,function(query) {
query = self.defaults(query);
console.log(query);
});
if (self.ids.length === 0) {
......@@ -169,6 +170,7 @@ function (angular, _, config, kbn) {
this.defaults = function(query) {
_.defaults(query,_query);
_.defaults(query,_dTypes[query.type]);
query.color = query.color || colorAt(query.id);
return query;
};
......
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