mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-17 19:55:24 +00:00
fix name
This commit is contained in:
parent
37aab6f41f
commit
169047c59e
@ -398,7 +398,7 @@ function deleteItem(index: number) {
|
|||||||
items.splice(index, 1);
|
items.splice(index, 1);
|
||||||
updateSettings();
|
updateSettings();
|
||||||
}
|
}
|
||||||
function updateSettings(config?: { [key: string]: MetricConfigOpt[] }) {
|
function updateSettings(metricConfig?: { [key: string]: MetricConfigOpt[] }) {
|
||||||
const metrics = legend.metric.filter(
|
const metrics = legend.metric.filter(
|
||||||
(d: any) => d.name && d.value && d.condition
|
(d: any) => d.name && d.value && d.condition
|
||||||
);
|
);
|
||||||
@ -412,7 +412,7 @@ function updateSettings(config?: { [key: string]: MetricConfigOpt[] }) {
|
|||||||
linkClientMetrics: states.linkClientMetrics,
|
linkClientMetrics: states.linkClientMetrics,
|
||||||
nodeMetrics: states.nodeMetrics,
|
nodeMetrics: states.nodeMetrics,
|
||||||
legend: metrics,
|
legend: metrics,
|
||||||
...config,
|
...metricConfig,
|
||||||
};
|
};
|
||||||
dashboardStore.selectWidget(param);
|
dashboardStore.selectWidget(param);
|
||||||
dashboardStore.setConfigs(param);
|
dashboardStore.setConfigs(param);
|
||||||
|
Loading…
Reference in New Issue
Block a user