mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-12 15:49:24 +00:00
fix: data
This commit is contained in:
parent
9b268813f5
commit
c2c6938368
@ -243,7 +243,10 @@ limitations under the License. -->
|
||||
async function setLegend() {
|
||||
updateSettings();
|
||||
const expression = dashboardStore.selectedGrid.legendMQE && dashboardStore.selectedGrid.legendMQE.expression;
|
||||
const { getExpressionQuery } = useQueryTopologyExpressionsProcessor([expression], topologyStore.nodes);
|
||||
const { getExpressionQuery } = useQueryTopologyExpressionsProcessor(
|
||||
[expression],
|
||||
topologyStore.nodes.filter((d: Node) => d.isReal),
|
||||
);
|
||||
const param = getExpressionQuery();
|
||||
const res = await topologyStore.getNodeExpressionValue(param);
|
||||
if (res.errors) {
|
||||
|
@ -314,7 +314,7 @@ limitations under the License. -->
|
||||
topologyStore.nodeMetricValue[m].values.find((val: { id: string; value: unknown }) => val.id === data.id)) ||
|
||||
{};
|
||||
const opt: MetricConfigOpt = nodeMetricConfig[index] || {};
|
||||
return ` <div class="mb-5"><span class="grey">${opt.label || m}: </span>${metric.value} ${
|
||||
return ` <div class="mb-5"><span class="grey">${opt.label || m}: </span>${metric.value || NaN} ${
|
||||
opt.unit || "unknown"
|
||||
}</div>`;
|
||||
});
|
||||
@ -530,7 +530,10 @@ limitations under the License. -->
|
||||
if (!currentNode.value) {
|
||||
return;
|
||||
}
|
||||
const diffLayers = currentNode.value.layers.filter((l: string) => l !== dashboardStore.layerId);
|
||||
const diffLayers = currentNode.value.layers.filter(
|
||||
(l: string) => l !== dashboardStore.layerId && l !== "UNDEFINED",
|
||||
);
|
||||
|
||||
for (const l of diffLayers) {
|
||||
items.value.push({
|
||||
id: l,
|
||||
|
Loading…
Reference in New Issue
Block a user