Skip to content

Commit 5f5cf80

Browse files
committed
Skip uninitialized queries
1 parent 3c45f1a commit 5f5cf80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/datasource/base.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,8 @@ export class BaseQuickwitDataSource
279279
* Returns false if the query should be skipped
280280
*/
281281
filterQuery(query: ElasticsearchQuery): boolean {
282-
if (query.hide) {
282+
// XXX : if metrics doesn't exist, the query is uninitialized. Skip
283+
if ( query.hide || !query.metrics) {
283284
return false;
284285
}
285286
return true;

0 commit comments

Comments
 (0)