added check for undefined
This commit is contained in:
parent
d37328103e
commit
b6eb3a951c
|
|
@ -140,10 +140,6 @@ export class PageXrayAggregator {
|
|||
}
|
||||
}
|
||||
summarizePerUrl(url) {
|
||||
if (Object.keys(this.urls[url]).length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
return this.summarizePerObject(this.urls[url]);
|
||||
}
|
||||
summarize() {
|
||||
|
|
@ -165,6 +161,8 @@ export class PageXrayAggregator {
|
|||
return summary;
|
||||
}
|
||||
summarizePerObject(type) {
|
||||
if (!type) return {};
|
||||
|
||||
return Object.keys(type).reduce((summary, name) => {
|
||||
if (
|
||||
METRIC_NAMES.includes(name) ||
|
||||
|
|
|
|||
Loading…
Reference in New Issue