Commit 3b3d20f7 authored by Jan Karres's avatar Jan Karres Committed by Joe Haddad

Check if 'formatAmpMessages' returns a none empty string in Next.js build process (#8924)

parent 5f203b83
...@@ -173,7 +173,7 @@ buildStore.subscribe(state => { ...@@ -173,7 +173,7 @@ buildStore.subscribe(state => {
} }
if (Object.keys(amp).length > 0) { if (Object.keys(amp).length > 0) {
warnings = (warnings || []).concat(formatAmpMessages(amp)) warnings = (warnings || []).concat(formatAmpMessages(amp) || [])
if (!warnings.length) warnings = null if (!warnings.length) warnings = null
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment