From 7338cec6b44117bcc70a4a09a8a1038b796c3afb Mon Sep 17 00:00:00 2001 From: Fine0830 Date: Fri, 22 Nov 2024 15:53:37 +0800 Subject: [PATCH] fix metrics query (#430) --- 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 || ""), ), ); }