better checks for missing data (#3212)
This commit is contained in:
parent
d63b4e52f4
commit
fda9372c50
|
|
@ -1,4 +1,4 @@
|
|||
if browsertime.timings.elementTimings !== undefined
|
||||
if browsertime.timings.elementTimings && Object.keys(browsertime.timings.elementTimings).length > 0
|
||||
a#elementTimings
|
||||
h3 Element timings
|
||||
table
|
||||
|
|
|
|||
|
|
@ -204,7 +204,7 @@ if browsertime
|
|||
|
||||
a#extras-metrics
|
||||
h3 Extra metrics collected using scripting
|
||||
if browsertime.extras
|
||||
if browsertime.extras && Object.keys(browsertime.extras).length > 0
|
||||
table
|
||||
tr
|
||||
th name
|
||||
|
|
|
|||
Loading…
Reference in New Issue