Skip to content

Commit

Permalink
Check if 'formatAmpMessages' returns a none empty string in Next.js b…
Browse files Browse the repository at this point in the history
…uild process
  • Loading branch information
Jan Karres committed Oct 23, 2019
1 parent 1ff5005 commit c37ba81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/build/output/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ buildStore.subscribe(state => {
}

if (Object.keys(amp).length > 0) {
warnings = (warnings || []).concat(formatAmpMessages(amp))
warnings = (warnings || []).concat(formatAmpMessages(amp) || [])
if (!warnings.length) warnings = null
}
}
Expand Down

0 comments on commit c37ba81

Please sign in to comment.