diff --git a/client/src/pages/admin/competitions/CompetitionManager.tsx b/client/src/pages/admin/competitions/CompetitionManager.tsx index 7c2c969efba20debfc116818a6f04945cb6ecbfe..d0b252a3adfc88d1d4864c645be74cc27ae6709e 100644 --- a/client/src/pages/admin/competitions/CompetitionManager.tsx +++ b/client/src/pages/admin/competitions/CompetitionManager.tsx @@ -316,7 +316,7 @@ const CompetitionManager: React.FC = (props: any) => { <TableBody> {competitions && competitions.map((row) => ( - <TableRow key={row.name}> + <TableRow key={row.id}> <TableCell scope="row"> <Button color="primary" component={Link} to={`/editor/competition-id=${row.id}`}> {row.name} diff --git a/client/src/pages/admin/regions/Regions.tsx b/client/src/pages/admin/regions/Regions.tsx index 0458266fa7a9bb1fb26e2949e33c7cc2192f78fa..f9a92ff73046c4d73af84d2105e8eef88038eb04 100644 --- a/client/src/pages/admin/regions/Regions.tsx +++ b/client/src/pages/admin/regions/Regions.tsx @@ -81,7 +81,7 @@ const RegionManager: React.FC = (props: any) => { <TableBody> {cities && cities.map((row) => ( - <TableRow key={row.name}> + <TableRow key={row.id}> <TableCell scope="row">{row.name}</TableCell> <TableCell align="right"> <Button onClick={(event) => handleClick(event, row.id)} data-testid={row.name}> diff --git a/client/src/pages/admin/users/UserManager.tsx b/client/src/pages/admin/users/UserManager.tsx index 0b32e86893a979c3e37061102e49ab4fb5ed4e7f..a51a472dcac25bbb958a795db0db7e0c366589d8 100644 --- a/client/src/pages/admin/users/UserManager.tsx +++ b/client/src/pages/admin/users/UserManager.tsx @@ -152,7 +152,7 @@ const UserManager: React.FC = (props: any) => { <TableBody> {users && users.map((row) => ( - <TableRow key={row.email}> + <TableRow key={row.id}> <TableCell scope="row">{row.email}</TableCell> <TableCell scope="row">{row.name}</TableCell> <TableCell>{cities.find((city) => city.id === row.city_id)?.name || ''}</TableCell>