fix(message/notification): use unique keys for url tokens (#11809)

This commit is contained in:
Mihaela Dumitru 2022-07-07 14:54:10 +03:00 committed by GitHub
parent 49357e3cd2
commit a685f096a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -70,9 +70,9 @@ class Message extends Component<Props> {
}
}
content.forEach(token => {
content.forEach((token, index) => {
if (typeof token === 'string' && token !== ' ') {
message.push(<Linkify key = { token }>{ token }</Linkify>);
message.push(<Linkify key = { `${token}-${index}` }>{ token }</Linkify>);
} else {
message.push(token);
}