use unique, non index key for polls

This commit is contained in:
Barry Gitarts 2018-06-29 21:10:14 -04:00
parent a4f0160343
commit af3366475e
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ const PollsList = () => (
{rawPolls
.map((poll, i) => ({ ...poll, idPoll: i }) )
.sort(sortingFn[pollOrder])
.map((poll, idx) => <Poll key={idx} appendToPoll={appendToPoll} updatePoll={updatePoll} {...poll} />)}
.map((poll) => <Poll key={poll._token} appendToPoll={appendToPoll} updatePoll={updatePoll} {...poll} />)}
</Fragment>
}
</VotingContext.Consumer>