From 0722347670add894aace143e7175eef0cd164151 Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Fri, 1 Mar 2024 10:38:10 -0500 Subject: [PATCH] don't fire query if there are no fields to request --- src/app/Dashboard/Charts/mbean/MBeanMetricsChartController.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/Dashboard/Charts/mbean/MBeanMetricsChartController.tsx b/src/app/Dashboard/Charts/mbean/MBeanMetricsChartController.tsx index 151a9398f..142831c4b 100644 --- a/src/app/Dashboard/Charts/mbean/MBeanMetricsChartController.tsx +++ b/src/app/Dashboard/Charts/mbean/MBeanMetricsChartController.tsx @@ -147,6 +147,9 @@ export class MBeanMetricsChartController { l += '}'; q.push(l); }); + if (q.length === 0) { + return of({}); + } return this._api.getTargetMBeanMetrics(target, q); } }