chore: fix network comp display

This commit is contained in:
Michael Brevard 2024-06-09 23:05:34 +03:00 committed by GitHub
parent ee7d8fa20e
commit b9e7354241
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -86,7 +86,9 @@ export const createLazyNetworkClientPage = (componentLoader: Component) => {
idleHandle = null
}
})
return () => isIdle.value ? h(componentLoader, attrs) : (instance.vnode.el && nuxt.isHydrating) ? createVNode(createStaticVNode(getFragmentHTML(instance.vnode.el ?? null, true)?.join('') || '', 1)) : null
return () => h('div', {}, [
isIdle.value ? h(componentLoader, attrs) : (instance.vnode.el && nuxt.isHydrating) ? createVNode(createStaticVNode(getFragmentHTML(instance.vnode.el ?? null, true)?.join('') || '', 1)) : null
])
},
})
}