]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: fix types
authorEvan You <yyx990803@gmail.com>
Tue, 14 Jul 2020 21:07:36 +0000 (17:07 -0400)
committerEvan You <yyx990803@gmail.com>
Tue, 14 Jul 2020 21:07:36 +0000 (17:07 -0400)
packages/runtime-core/src/componentRenderUtils.ts

index 9e854b265bbae81133c315f9a60bf035f8423515..54fa4b3f3d80ce50d4d7a224dbc1852289a5588e 100644 (file)
@@ -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)
     }