getQueryResult only if query.data_source_id exists

This commit is contained in:
Amir Nissim 2014-03-24 12:07:00 +02:00
parent e0af1f20af
commit 16a83f6134

View File

@ -323,7 +323,7 @@
queryResult = new QueryResult({'query_result': this.latest_query_data});
} else if (this.latest_query_data_id && ttl != 0) {
queryResult = QueryResult.getById(this.latest_query_data_id);
} else {
} else if (this.data_source_id) {
queryResult = QueryResult.get(this.data_source_id, this.query, ttl);
}