mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-14 17:05:10 +00:00
avoid data error
This commit is contained in:
parent
2230702d97
commit
966195ce87
@ -143,7 +143,7 @@ export function useSourceProcessor(
|
||||
return {};
|
||||
}
|
||||
const source: { [key: string]: unknown } = {};
|
||||
const keys = Object.keys(resp.data);
|
||||
const keys = Object.keys((resp && resp.data) || {});
|
||||
|
||||
config.metricTypes.forEach((type: string, index) => {
|
||||
const m = config.metrics[index];
|
||||
|
Loading…
Reference in New Issue
Block a user