mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 14:17:13 +01:00
Fix teamRole showing.
This commit is contained in:
parent
f2f5517051
commit
c5dd3390d6
3 changed files with 17 additions and 4 deletions
|
|
@ -29,7 +29,9 @@ export function TeamMembersTable({
|
|||
}
|
||||
if (key === 'role') {
|
||||
return formatMessage(
|
||||
labels[Object.keys(ROLES).find(key => ROLES[key] === row.role) || labels.unknown],
|
||||
labels[
|
||||
Object.keys(ROLES).find(key => ROLES[key] === row?.teamUser[0]?.role) || labels.unknown
|
||||
],
|
||||
);
|
||||
}
|
||||
return data[key];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue