Skip to content

Commit

Permalink
fix(vue-app): fix getNuxtChildComponents method (#4969)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyrpex authored and clarkdo committed Feb 7, 2019
1 parent 111455f commit dbf7099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-app/template/client.js
Expand Up @@ -528,7 +528,7 @@ const noopFetch = () => {}
// Special hot reload with asyncData(context)
function getNuxtChildComponents($parent, $components = []) {
$parent.$children.forEach(($child) => {
if ($child.$vnode.data.nuxtChild && !$components.find(c =>(c.$options.__file === $child.$options.__file))) {
if ($child.$vnode && $child.$vnode.data.nuxtChild && !$components.find(c =>(c.$options.__file === $child.$options.__file))) {
$components.push($child)
}
if ($child.$children && $child.$children.length) {
Expand Down

0 comments on commit dbf7099

Please sign in to comment.