From cfb6660fcd17dacb496a32f213751a1b316fb409 Mon Sep 17 00:00:00 2001 From: Michael Brevard Date: Thu, 11 Apr 2024 00:42:29 +0300 Subject: [PATCH] fix: missing question marks --- .../nuxt/src/components/runtime/client-delayed-component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nuxt/src/components/runtime/client-delayed-component.ts b/packages/nuxt/src/components/runtime/client-delayed-component.ts index c2751450a5..9ab87f6e6d 100644 --- a/packages/nuxt/src/components/runtime/client-delayed-component.ts +++ b/packages/nuxt/src/components/runtime/client-delayed-component.ts @@ -14,7 +14,7 @@ export const createLazyIOClientPage = (componentLoader: Component) => { const instance = getCurrentInstance()! let vnode: VNode | null = null if (import.meta.client && nuxt.isHydrating && instance.vnode?.el) { - vnode = createStaticVNode(getFragmentHTML(instance.vnode.el ?? null, true).join('') || '', 1) + vnode = createStaticVNode(getFragmentHTML(instance.vnode.el ?? null, true)?.join('') || '', 1) } const isIntersecting = ref(false) const el: Ref = ref(null) @@ -47,7 +47,7 @@ export const createLazyNetworkClientPage = (componentLoader: Component) => { const instance = getCurrentInstance()! let vnode: VNode | null = null if (import.meta.client && nuxt.isHydrating && instance.vnode?.el) { - vnode = createStaticVNode(getFragmentHTML(instance.vnode.el ?? null, true).join('') || '', 1) + vnode = createStaticVNode(getFragmentHTML(instance.vnode.el ?? null, true)?.join('') || '', 1) } const isIdle = ref(false) let idleHandle: number | null = null