Skip to content

Commit 0921ace

Browse files
committed
fix: Add a check for parent
1 parent 1402e32 commit 0921ace

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/create-instance/create-component-stubs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ function getScopedSlotRenderFunctions(ctx: any): Array<string> {
8888
if (
8989
ctx &&
9090
ctx.$options &&
91+
ctx.$options.parent &&
9192
ctx.$options.parent._vnode &&
9293
ctx.$options.parent._vnode.data &&
9394
ctx.$options.parent._vnode.data.scopedSlots

0 commit comments

Comments
 (0)