mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-14 20:01:28 +00:00
refactor: remove the General
metric mode and related logical code (#384)
This commit is contained in:
@@ -129,9 +129,9 @@ export async function useExpressionsQueryProcessor(config: Indexable) {
|
||||
}
|
||||
if (type === ExpressionResultType.SINGLE_VALUE) {
|
||||
for (const item of results) {
|
||||
const label = item.metric.labels
|
||||
.map((d: { key: string; value: string }) => `${d.key}=${d.value}`)
|
||||
.join(",");
|
||||
const label =
|
||||
item.metric &&
|
||||
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) {
|
||||
source[label || c.label || name] = values;
|
||||
|
Reference in New Issue
Block a user