From: Evan You Date: Tue, 14 Jul 2020 21:07:36 +0000 (-0400) Subject: chore: fix types X-Git-Tag: v3.0.0-beta.21~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f49f95344b32fcb0de83dc6d3d3799d0e554811d;p=thirdparty%2Fvuejs%2Fcore.git chore: fix types --- diff --git a/packages/runtime-core/src/componentRenderUtils.ts b/packages/runtime-core/src/componentRenderUtils.ts index 9e854b265b..54fa4b3f3d 100644 --- a/packages/runtime-core/src/componentRenderUtils.ts +++ b/packages/runtime-core/src/componentRenderUtils.ts @@ -175,7 +175,7 @@ export function renderComponentRoot( treeOwnerId && treeOwnerId !== scopeId ? treeOwnerId + '-s' : null if (needScopeId || slotScopeId) { const extras: Data = {} - if (needScopeId) extras[scopeId] = '' + if (needScopeId) extras[scopeId!] = '' if (slotScopeId) extras[slotScopeId] = '' root = cloneVNode(root, extras) }