From f49f95344b32fcb0de83dc6d3d3799d0e554811d Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 14 Jul 2020 17:07:36 -0400 Subject: [PATCH] chore: fix types --- packages/runtime-core/src/componentRenderUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/componentRenderUtils.ts b/packages/runtime-core/src/componentRenderUtils.ts index 9e854b26..54fa4b3f 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) }