From 23331b1b1bbdb1dccdb6b2c0f3b1889bb83454b9 Mon Sep 17 00:00:00 2001 From: Fine Date: Thu, 24 Apr 2025 11:40:26 +0800 Subject: [PATCH] typo --- src/hooks/useExpressionsProcessor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useExpressionsProcessor.ts b/src/hooks/useExpressionsProcessor.ts index e6889922..b4b54598 100644 --- a/src/hooks/useExpressionsProcessor.ts +++ b/src/hooks/useExpressionsProcessor.ts @@ -130,7 +130,7 @@ export async function useDashboardQueryProcessor(configList: Indexable[]) { item.metric.labels.map((d: { key: string; value: string }) => `${d.key}=${d.value}`).join(","); const values = item.values.map((d: { value: unknown }) => d.value) || []; if (results.length === 1) { - // If the label does not exist use the configuration label or expression + // If the metrics label does not exist, use the configuration label or expression label = label ? `${metricConfig.label || name}, ${label}` : metricConfig.label || name; } source[label] = values;