Skip to content

Commit

Permalink
Merge pull request #108 from quickwit-oss/ddelemeny/skip-uninitialize…
Browse files Browse the repository at this point in the history
…d-queries

Skip uninitialized queries
  • Loading branch information
ddelemeny authored Mar 14, 2024
2 parents 3c45f1a + 5f5cf80 commit 957a6f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/datasource/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,8 @@ export class BaseQuickwitDataSource
* Returns false if the query should be skipped
*/
filterQuery(query: ElasticsearchQuery): boolean {
if (query.hide) {
// XXX : if metrics doesn't exist, the query is uninitialized. Skip
if ( query.hide || !query.metrics) {
return false;
}
return true;
Expand Down

0 comments on commit 957a6f8

Please sign in to comment.