mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-02 15:14:46 +00:00
refactor
This commit is contained in:
parent
5a01f93494
commit
7bb0728751
@ -130,11 +130,7 @@ export async function useDashboardQueryProcessor(configList: Indexable[]) {
|
|||||||
item.metric.labels.map((d: { key: string; value: string }) => `${d.key}=${d.value}`).join(",");
|
item.metric.labels.map((d: { key: string; value: string }) => `${d.key}=${d.value}`).join(",");
|
||||||
const values = item.values.map((d: { value: unknown }) => d.value) || [];
|
const values = item.values.map((d: { value: unknown }) => d.value) || [];
|
||||||
if (results.length === 1) {
|
if (results.length === 1) {
|
||||||
if (label) {
|
label = label ? `${c.label || name}, ${label}` : c.label || name;
|
||||||
label = `${c.label || name}, ${label}`;
|
|
||||||
} else {
|
|
||||||
label = c.label || name;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
source[label] = values;
|
source[label] = values;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user