fix metrics query (#430)

This commit is contained in:
Fine0830
2024-11-22 15:53:37 +08:00
committed by GitHub
parent 536df8c052
commit 7338cec6b4

View File

@@ -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 || ""),
),
);
}