Skip to content

Commit b8f16aa

Browse files
Update packages/language-core/lib/codegen/template/vFor.ts
Co-authored-by: Johnson Chu <[email protected]>
1 parent 9441b3a commit b8f16aa

File tree

1 file changed

+1
-1
lines changed
  • packages/language-core/lib/codegen/template

1 file changed

+1
-1
lines changed

packages/language-core/lib/codegen/template/vFor.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export function* generateVFor(
5252
}
5353
let isFragment = true;
5454
// children is undefined with v-once (#4827)
55-
for (const argument of node.codegenNode?.children?.arguments ?? []) {
55+
for (const argument of (node.codegenNode?.children as CompilerDOM.ForRenderListExpression | undefined)?.arguments ?? []) {
5656
if (
5757
argument.type === CompilerDOM.NodeTypes.JS_FUNCTION_EXPRESSION
5858
&& argument.returns?.type === CompilerDOM.NodeTypes.VNODE_CALL

0 commit comments

Comments
 (0)