fix(message/notification): use unique keys for url tokens (#11809)
This commit is contained in:
parent
49357e3cd2
commit
a685f096a0
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue