Skip to content

Commit

Permalink
Merge pull request #227 from Tresjs/bugfix/docs-scenes-broken-potenti…
Browse files Browse the repository at this point in the history
…al-fix-vnodes-insert

fix: optional chaining on insert vnodes
  • Loading branch information
alvarosabu authored Apr 20, 2023
2 parents 7e51db3 + c2dcf52 commit b18aa96
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 b18aa96

Please sign in to comment.