fix: Development warning, missing key on event list items

This commit is contained in:
Tom Moor 2020-08-31 20:29:55 -07:00
parent 31522b0d6f
commit 4edf90a184

View File

@ -86,7 +86,7 @@ class Events extends React.Component<Props> {
) : (
<>
{events.orderedData.map((event) => (
<EventListItem event={event} />
<EventListItem event={event} key={event.id} />
))}
{this.allowLoadMore && (
<Waypoint key={this.offset} onEnter={this.loadMoreResults} />