use unique, non index key for polls
This commit is contained in:
parent
a4f0160343
commit
af3366475e
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue