Skip to content

Commit

Permalink
fix: optional chaining on insert vnodes
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Apr 20, 2023
1 parent 7e51db3 commit c2dcf52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/nodeOps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const nodeOps: RendererOptions<TresObject, TresObject> = {
},
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
) {
Expand Down

0 comments on commit c2dcf52

Please sign in to comment.