From 8dd0ef228a6c6a3913082b0fc2f34bffb777f6fc Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Fri, 30 Sep 2022 11:17:58 +0200 Subject: [PATCH] fix: subTree is null --- packages/app-backend-vue3/src/components/el.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/app-backend-vue3/src/components/el.ts b/packages/app-backend-vue3/src/components/el.ts index ef87958dc..6b71dd444 100644 --- a/packages/app-backend-vue3/src/components/el.ts +++ b/packages/app-backend-vue3/src/components/el.ts @@ -9,6 +9,7 @@ export function getRootElementsFromComponentInstance (instance) { if (isFragment(instance)) { return getFragmentRootElements(instance.subTree) } + if (!instance.subTree) return [] return [instance.subTree.el] }