From e9509fe22d625cc4208d119d12500f0e14c63284 Mon Sep 17 00:00:00 2001 From: Fine Date: Fri, 22 Nov 2024 15:16:39 +0800 Subject: [PATCH] fix metrics query --- src/views/dashboard/panel/Layout.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/dashboard/panel/Layout.vue b/src/views/dashboard/panel/Layout.vue index bfebc00c..9a93aae4 100644 --- a/src/views/dashboard/panel/Layout.vue +++ b/src/views/dashboard/panel/Layout.vue @@ -88,7 +88,7 @@ limitations under the License. --> const index = isNaN(item.activedTabIndex) ? 0 : item.activedTabIndex; widgets.push( ...item.children[index].children.filter( - (d: LayoutConfig) => !ListChartTypes.includes(d.graph?.type || ""), + (d: LayoutConfig) => d.type === WidgetType.Widget && !ListChartTypes.includes(d.graph?.type || ""), ), ); }