fix metrics query

This commit is contained in:
Fine 2024-11-22 15:16:39 +08:00
parent 536df8c052
commit e9509fe22d

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