better checks for missing data (#3212)

This commit is contained in:
Peter Hedenskog 2020-12-14 05:22:38 +01:00 committed by GitHub
parent d63b4e52f4
commit fda9372c50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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