mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
Merge pull request #678 from alonho/655
Fix: Dashboard shouldn't crash with empty queries
This commit is contained in:
commit
ca8cca0a8c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user