Fix layout not declared

This commit is contained in:
Sebastien Chopin 2017-07-27 16:26:36 +02:00
parent dbe4f13a7a
commit 6c6e6e55aa

View File

@ -199,7 +199,7 @@ async function render (to, from, next) {
if (context._redirected) return
// Load layout for error page
layout = await this.loadLayout(typeof NuxtError.layout === 'function' ? NuxtError.layout(context) : NuxtError.layout)
const layout = await this.loadLayout(typeof NuxtError.layout === 'function' ? NuxtError.layout(context) : NuxtError.layout)
await callMiddleware.call(this, Components, context, layout)
if (context._redirected) return