Skip to content

Commit caa97cf

Browse files
author
vikasrohit
authored
Merge pull request #2925 from appirio-tech/hotfix/non_responsive_team_management_section
Github issue#2921, Cannot read property 'title' of undefined
2 parents 935daea + dcaa881 commit caa97cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/TeamManagement/TopcoderManagementDialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class TopcoderManagementDialog extends React.Component {
172172
const lastName = _.get(member, 'lastName', '')
173173
let userFullName = `${firstName} ${lastName}`
174174
userFullName = userFullName.trim().length > 0 ? userFullName : 'Connect user'
175-
const role = _.find(this.roles, r => r.value === member.role).title
175+
const role = _.get(_.find(this.roles, r => r.value === member.role), 'title')
176176
return (
177177
<div
178178
key={i}

0 commit comments

Comments
 (0)