fix: missing question marks

This commit is contained in:
Michael Brevard 2024-04-11 00:42:29 +03:00 committed by GitHub
parent cb7fc3f873
commit cfb6660fcd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ export const createLazyIOClientPage = (componentLoader: Component) => {
const instance = getCurrentInstance()! const instance = getCurrentInstance()!
let vnode: VNode | null = null let vnode: VNode | null = null
if (import.meta.client && nuxt.isHydrating && instance.vnode?.el) { 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 isIntersecting = ref(false)
const el: Ref<Element | null> = ref(null) const el: Ref<Element | null> = ref(null)
@ -47,7 +47,7 @@ export const createLazyNetworkClientPage = (componentLoader: Component) => {
const instance = getCurrentInstance()! const instance = getCurrentInstance()!
let vnode: VNode | null = null let vnode: VNode | null = null
if (import.meta.client && nuxt.isHydrating && instance.vnode?.el) { 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) const isIdle = ref(false)
let idleHandle: number | null = null let idleHandle: number | null = null