Skip to content

Commit

Permalink
Merge pull request #29 from bcgsc/fix/KBDEV-959-admin-users-table
Browse files Browse the repository at this point in the history
fix: handle user without any groups
  • Loading branch information
areisle authored Feb 3, 2022
2 parents 248e73b + 5c79221 commit f72972b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/AdminView/components/AdminTable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const AdminTable = ({ onChange, records, variant }) => {
headerName: 'groups',
field: 'groups',
flex: true,
valueGetter: ({ data: { groups } }) => groups.map(group => group.name).join(', '),
valueGetter: ({ data: { groups } }) => groups?.map(group => group.name).join(', ') ?? '',
},
]);
}
Expand Down

0 comments on commit f72972b

Please sign in to comment.