Skip to content

Commit

Permalink
don't fire query if there are no fields to request
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Mar 1, 2024
1 parent 3799db0 commit 0722347
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ export class MBeanMetricsChartController {
l += '}';
q.push(l);
});
if (q.length === 0) {
return of({});
}
return this._api.getTargetMBeanMetrics(target, q);
}
}

0 comments on commit 0722347

Please sign in to comment.