mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-14 17:05:10 +00:00
fix source
This commit is contained in:
parent
966195ce87
commit
2d5a082894
@ -142,8 +142,12 @@ export function useSourceProcessor(
|
|||||||
ElMessage.error(resp.errors);
|
ElMessage.error(resp.errors);
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
if (!resp.data) {
|
||||||
|
ElMessage.error("The query is wrong");
|
||||||
|
return {};
|
||||||
|
}
|
||||||
const source: { [key: string]: unknown } = {};
|
const source: { [key: string]: unknown } = {};
|
||||||
const keys = Object.keys((resp && resp.data) || {});
|
const keys = Object.keys(resp.data);
|
||||||
|
|
||||||
config.metricTypes.forEach((type: string, index) => {
|
config.metricTypes.forEach((type: string, index) => {
|
||||||
const m = config.metrics[index];
|
const m = config.metrics[index];
|
||||||
|
Loading…
Reference in New Issue
Block a user