Skip to content

Commit 4aac54f

Browse files
committed
fix key in stackgrid for add/del animations
1 parent 0ac269f commit 4aac54f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cards/CardList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function CardList(props) {
4545
<StackGrid className="container-fluid p-0" {...gridSettings}>
4646
{props.cards.map ? (props.cards.map((card, index) => {
4747
return (
48-
<CardItem card={card} key={index} index={index} />
48+
<CardItem card={card} key={card.id} index={index} />
4949
)
5050
})) : null}
5151
</StackGrid>

0 commit comments

Comments
 (0)