mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-23 00:13:13 +09:00
Fix missing key on users table roles column
Results in inconsistent visual behaviour when creating and deleting roles
This commit is contained in:
1 parent
a893109a06
commit
d622ab5127
1 file changed
+2
-2
@@ -98,8 +98,8 @@ export default function UsersPage() {
|
|||||||
title: "Roles",
|
title: "Roles",
|
||||||
key: "roles",
|
key: "roles",
|
||||||
render: (_, user) => (
|
render: (_, user) => (
|
||||||
[...user.roleIds].map(id => <Link to={`/roles/${id}/view`} onClick={e => e.stopPropagation()}>
|
[...user.roleIds].map(id => <Link key={id} to={`/roles/${id}/view`} onClick={e => e.stopPropagation()}>
|
||||||
<Tag key={id}>{(roles.get(id) || { name: id }).name}</Tag>
|
<Tag>{(roles.get(id) || { name: id }).name}</Tag>
|
||||||
</Link>)
|
</Link>)
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user