1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

use user.Id for key instead of index

This commit is contained in:
grafixeyehero 2021-10-02 20:10:46 +03:00
parent 20d88e7611
commit cbc822ce65

View file

@ -141,8 +141,8 @@ const UserProfilesPage: FunctionComponent = () => {
/>
</div>
<div className='localUsers itemsContainer vertical-wrap'>
{users.map((user, index: number)=> {
return <UserCardBox key={index} user={user} />;
{users.map(user => {
return <UserCardBox key={user.Id} user={user} />;
})}
</div>
</div>