Merge pull request #678 from alonho/655

Fix: Dashboard shouldn't crash with empty queries
This commit is contained in:
Arik Fraimovich 2015-11-30 22:34:00 +02:00
commit ca8cca0a8c

View File

@ -16,7 +16,9 @@
var w = new Widget(widget);
if (w.visualization) {
promises.push(w.getQuery().getQueryResult().toPromise());
var queryResult = w.getQuery().getQueryResult();
if (angular.isDefined(queryResult))
promises.push(queryResult.toPromise());
}
return w;