fix(trace-viewer): can't read object type (#7802)
This commit is contained in:
parent
03ebe21323
commit
a20e20cdae
|
|
@ -59,7 +59,7 @@ export function stats(action: ActionTraceEvent): { errors: number, warnings: num
|
|||
for (const event of eventsForAction(action)) {
|
||||
if (event.metadata.method === 'console') {
|
||||
const { guid } = event.metadata.params.message;
|
||||
const type = p.objects[guid].type;
|
||||
const type = p.objects[guid]?.type;
|
||||
if (type === 'warning')
|
||||
++warnings;
|
||||
else if (type === 'error')
|
||||
|
|
|
|||
Loading…
Reference in a new issue