kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Add 'key' to Link to fix react console error
rodzic
3dd4efdc14
commit
44fce6fbf3
|
@ -50,7 +50,14 @@ const StatusReplyMentions: React.FC<IStatusReplyMentions> = ({ status, hoverable
|
||||||
// The typical case with a reply-to and a list of mentions.
|
// The typical case with a reply-to and a list of mentions.
|
||||||
const accounts = to.slice(0, 2).map(account => {
|
const accounts = to.slice(0, 2).map(account => {
|
||||||
const link = (
|
const link = (
|
||||||
<Link to={`/@${account.acct}`} className='reply-mentions__account' onClick={(e) => e.stopPropagation()}>@{account.username}</Link>
|
<Link
|
||||||
|
key={account.id}
|
||||||
|
to={`/@${account.acct}`}
|
||||||
|
className='reply-mentions__account'
|
||||||
|
onClick={(e) => e.stopPropagation()}
|
||||||
|
>
|
||||||
|
@{account.username}
|
||||||
|
</Link>
|
||||||
);
|
);
|
||||||
|
|
||||||
if (hoverable) {
|
if (hoverable) {
|
||||||
|
|
Ładowanie…
Reference in New Issue