Skip to content

Commit

Permalink
fix:when target is hide, not request
Browse files Browse the repository at this point in the history
  • Loading branch information
wuyh_1 committed Jun 26, 2024
1 parent d026854 commit 9d132a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/DataSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ export class DataSource extends DataSourceApi<GrafanaQuery, GenericOptions> {
query(options: QueryRequest): Promise<DataQueryResponse> {
const request = this.processTargets(options);

request.targets = request.targets.filter(t => !t.hide);

if (request.targets.length === 0) {
return Promise.resolve({ data: [] });
}
Expand Down

0 comments on commit 9d132a8

Please sign in to comment.