hotfix: applyAsyncData only if data is set

This commit is contained in:
Sebastien Chopin 2017-09-07 14:44:13 +02:00
parent 8c00e92409
commit 03348c85cd

View File

@ -132,10 +132,10 @@ async function loadAsyncComponents (to, from, next) {
}
function applySSRData(Component, ssrData) {
if (NUXT.serverRendered) {
if (NUXT.serverRendered && ssrData) {
applyAsyncData(Component, ssrData)
Component._Ctor = Component
}
Component._Ctor = Component
return Component
}