Use object IDs instead of array indices as keys

This commit is contained in:
2020-01-18 01:36:53 +00:00
parent cb8ac3cf63
commit 08bd52704b
9 changed files with 23 additions and 22 deletions
+2 -2
View File
@@ -185,8 +185,8 @@ export function AdminMemberCards(props) {
<Header size='small'>Current Cards</Header>
{cards.length ?
cards.map((x, i) =>
<AdminCardDetail key={i} card={x} {...props} />
cards.map(x =>
<AdminCardDetail key={x.id} card={x} {...props} />
)
:
<p>None</p>