Skip to content

Commit

Permalink
fix: subTree is null
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Sep 30, 2022
1 parent 1b0af29 commit 8dd0ef2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/app-backend-vue3/src/components/el.ts
Expand Up @@ -9,6 +9,7 @@ export function getRootElementsFromComponentInstance (instance) {
if (isFragment(instance)) {
return getFragmentRootElements(instance.subTree)
}
if (!instance.subTree) return []
return [instance.subTree.el]
}

Expand Down

0 comments on commit 8dd0ef2

Please sign in to comment.