mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Fixed duplicated key in Collaborator icons (#4272)
GitOrigin-RevId: f0bfc27de0764f3347e6b4cf342a1be574e3e916
This commit is contained in:
parent
ab15252843
commit
1419129348
1 changed files with 4 additions and 4 deletions
|
@ -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>}
|
||||
|
|
Loading…
Reference in a new issue