Added owner column to teams table.

This commit is contained in:
Mike Cao 2023-02-02 02:54:43 -08:00
parent e5b57f63cd
commit 22aeaf7166
3 changed files with 4 additions and 3 deletions

View file

@ -42,7 +42,7 @@ export default function TeamsTable({ data = [] }) {
const rowData = {
...row,
owner: row.teamUsers.find(({ role }) => role === ROLES.teamOwner)?.user?.username,
owner: row.teamUser.find(({ role }) => role === ROLES.teamOwner)?.user?.username,
action: (
<Flexbox flex={1} justifyContent="end">
<Link href={`/settings/teams/${id}`}>