Merge pull request #1973 from dotneet/fix-dev-regression

fix regression in dev mode
This commit is contained in:
Sébastien Chopin 2017-10-29 09:17:22 +01:00 committed by GitHub
commit b8aa2d6daa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -393,7 +393,7 @@ function nuxtReady (app) {
// Special hot reload with asyncData(context)
function getNuxtChildComponents($parent, $components = []) {
$parent.$children.forEach(($child) => {
if ($child.$vnode.data.nuxtChild && !$components.find(c =>(component.$options.__file === $child.$options.__file))) {
if ($child.$vnode.data.nuxtChild && !$components.find(c =>(c.$options.__file === $child.$options.__file))) {
$components.push($child)
}
if ($child.$children && $child.$children.length) {