From c2dcf52c5e30a22953755a96d8bddbd955c5a1d8 Mon Sep 17 00:00:00 2001 From: alvarosabu Date: Thu, 20 Apr 2023 15:26:41 +0200 Subject: [PATCH] fix: optional chaining on insert vnodes --- src/core/nodeOps.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/nodeOps.ts b/src/core/nodeOps.ts index c337e360f..7d9895c16 100644 --- a/src/core/nodeOps.ts +++ b/src/core/nodeOps.ts @@ -78,7 +78,7 @@ export const nodeOps: RendererOptions = { }, insert(child, parent) { if ( - (child?.__vnode.type === 'TresGroup' || child?.__vnode.type === 'TresObject3D') && + (child?.__vnode?.type === 'TresGroup' || child?.__vnode?.type === 'TresObject3D') && parent === null && !child?.__vnode?.ctx?.asyncResolved ) {