Skip to content

Commit 10fccfd

Browse files
authored
Update nested-objects-and-arrays.mdx (#4714)
An error in interation over nested links array. idx should be wrapper with ${idx}
1 parent de7116a commit 10fccfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/pages/guide/components/nested-objects-and-arrays.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ _*Iterate over both `users` and `links`:*_
197197
<div v-for="(userEntry, userIdx) in users">
198198
<FieldArray :name="`users[${userIdx}].links`" v-slot="{ fields: links }">
199199
<div v-for="(entry, idx) in fields" :key="entry.key">
200-
<Field :name="`users[${userIdx}].links[idx]`" />
200+
<Field :name="`users[${userIdx}].links[${idx}]`" />
201201
</div>
202202
</FieldArray>
203203
</div>

0 commit comments

Comments
 (0)