Skip to content
Permalink
Browse files

fix(vue-app): fix `getNuxtChildComponents` method (#4969)

  • Loading branch information...
skyrpex authored and clarkdo committed Feb 7, 2019
1 parent 111455f commit dbf70999e43782d1130852aa3d31c1e9c1486507
Showing with 1 addition and 1 deletion.
  1. +1 −1 packages/vue-app/template/client.js
@@ -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) {

0 comments on commit dbf7099

Please sign in to comment.
You can’t perform that action at this time.