diff options
Diffstat (limited to 'webapp/components/user_list_row.jsx')
-rw-r--r-- | webapp/components/user_list_row.jsx | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/webapp/components/user_list_row.jsx b/webapp/components/user_list_row.jsx index aae3d4dd8..6761206e0 100644 --- a/webapp/components/user_list_row.jsx +++ b/webapp/components/user_list_row.jsx @@ -17,16 +17,19 @@ export default function UserListRow({user, teamMember, actions, actionProps}) { name = `${Utils.getFullName(user)} (@${user.username})`; } - const buttons = actions.map((Action, index) => { - return ( - <Action - key={index.toString()} - user={user} - teamMember={teamMember} - {...actionProps} - /> - ); - }); + let buttons = null; + if (actions) { + buttons = actions.map((Action, index) => { + return ( + <Action + key={index.toString()} + user={user} + teamMember={teamMember} + {...actionProps} + /> + ); + }); + } return ( <div |