Skip to content

Commit 7bdbab1

Browse files
authored
Fix missing id properties in docs example (#6395)
This example contains a list of person objects, but only the first 3 have id properties. This appears to be a mistake; in the next use of the list all 5 person objects have this property, but it is not changed as part of an instructive exercise. This change makes the final two with objects consistent with the remainder of the list.
1 parent 9c04f9b commit 7bdbab1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/content/learn/rendering-lists.md

+2
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,11 @@ const people = [{
113113
name: 'Mohammad Abdus Salam',
114114
profession: 'physicist',
115115
}, {
116+
id: 3,
116117
name: 'Percy Lavon Julian',
117118
profession: 'chemist',
118119
}, {
120+
id: 4,
119121
name: 'Subrahmanyan Chandrasekhar',
120122
profession: 'astrophysicist',
121123
}];

0 commit comments

Comments
 (0)