Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
linzhe141 committed Oct 15, 2024
1 parent d18c956 commit 9dd7ab3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/runtime-core/src/vnode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,12 @@ function createBaseVNode(
appContext: null,
ctx: currentRenderingInstance,
} as VNode
// eslint-disable-next-line no-restricted-syntax
if (vnode.ctx && currentRenderingInstance?.parent?.ut) {
if (
vnode.ctx &&
currentRenderingInstance &&
currentRenderingInstance.parent &&
currentRenderingInstance.parent.ut
) {
vnode.ctx.parentUt = {
ut: currentRenderingInstance.parent.ut,
uid: currentRenderingInstance.parent.uid,
Expand Down

0 comments on commit 9dd7ab3

Please sign in to comment.