fix: correct metric labels in dashboards (#546)

This commit is contained in:
Fine0830
2026-04-17 22:48:24 +08:00
committed by GitHub
parent d2879e3f37
commit a6be0e0e0d

View File

@@ -192,7 +192,7 @@ export async function useDashboardQueryProcessor(configList: DashboardWidgetConf
)
) {
for (const item of results) {
let label: string = name;
let label: string = "" as string;
if (item.metric) {
const joined = item.metric.labels
.map((d: { key: string; value: string }) => `${d.key}=${d.value}`)