Merge pull request #3131 from benjiwheeler/fix-comment-key

provide key to comments
This commit is contained in:
Benjamin Wheeler 2019-07-29 19:36:37 -04:00 committed by GitHub
commit 099cde71b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -196,11 +196,12 @@ class Comment extends React.Component {
*/}
<span className="comment-content">
{commentText.map(fragment => {
{commentText.map((fragment, index) => {
if (typeof fragment === 'string') {
return (
<EmojiText
as="span"
key={`comments-${id}-fragment-${index}`}
text={fragment}
/>
);