Fixed duplicated key in Collaborator icons (#4272)

GitOrigin-RevId: f0bfc27de0764f3347e6b4cf342a1be574e3e916
This commit is contained in:
Miguel Serrano 2021-06-30 13:03:13 +02:00 committed by Copybot
parent ab15252843
commit 1419129348

View file

@ -20,10 +20,10 @@ function OnlineUsersWidget({ onlineUsers, goToUser }) {
/>
<Dropdown.Menu>
<MenuItem header>{t('connected_users')}</MenuItem>
{onlineUsers.map(user => (
{onlineUsers.map((user, index) => (
<MenuItem
as="button"
key={user.user_id}
key={`${user.user_id}_${index}`}
eventKey={user}
onSelect={goToUser}
>
@ -36,9 +36,9 @@ function OnlineUsersWidget({ onlineUsers, goToUser }) {
} else {
return (
<div className="online-users">
{onlineUsers.map(user => (
{onlineUsers.map((user, index) => (
<OverlayTrigger
key={user.user_id}
key={`${user.user_id}_${index}`}
placement="bottom"
trigger={['hover', 'focus']}
overlay={<Tooltip id="tooltip-online-user">{user.name}</Tooltip>}