Skip to content

Commit

Permalink
Fix cannot read property metrics of undefined (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanMaRuiz authored Jan 7, 2021
1 parent 898d7c7 commit 54cd244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/output.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ module.exports = (parameters, response) => {
return Promise.resolve().then(() => {
const renderer = require(`./formats/${getReporter(parameters.format)}`);
const threshold = getThreshold(parameters.threshold);
const {lighthouseResult, loadingExperience, id} = response;
const {lighthouseResult, loadingExperience = {}, id} = response;

console.log(renderer(
overview(humanizeUrl(id), parameters.strategy, lighthouseResult),
Expand Down

0 comments on commit 54cd244

Please sign in to comment.