Skip to content

Commit dbf7099

Browse files
skyrpexclarkdo
authored andcommitted
fix(vue-app): fix getNuxtChildComponents method (#4969)
1 parent 111455f commit dbf7099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vue-app/template/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ const noopFetch = () => {}
528528
// Special hot reload with asyncData(context)
529529
function getNuxtChildComponents($parent, $components = []) {
530530
$parent.$children.forEach(($child) => {
531-
if ($child.$vnode.data.nuxtChild && !$components.find(c =>(c.$options.__file === $child.$options.__file))) {
531+
if ($child.$vnode && $child.$vnode.data.nuxtChild && !$components.find(c =>(c.$options.__file === $child.$options.__file))) {
532532
$components.push($child)
533533
}
534534
if ($child.$children && $child.$children.length) {

0 commit comments

Comments
 (0)