mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-14 20:01:28 +00:00
fix: polish pages and validate data (#46)
This commit is contained in:
@@ -166,9 +166,9 @@ async function queryInstanceMetrics(currentInstances: Instance[]) {
|
||||
if (!currentInstances.length) {
|
||||
return;
|
||||
}
|
||||
const { metrics } = props.config;
|
||||
const { metrics, metricTypes } = props.config;
|
||||
|
||||
if (metrics.length && metrics[0]) {
|
||||
if (metrics.length && metrics[0] && metricTypes.length && metricTypes[0]) {
|
||||
const params = await useQueryPodsMetrics(
|
||||
currentInstances,
|
||||
props.config,
|
||||
|
Reference in New Issue
Block a user