From dcaa881d9c00bbfd4b1f3c68a08b72bed68c0547 Mon Sep 17 00:00:00 2001 From: Vikas Agarwal Date: Sat, 16 Mar 2019 13:10:38 +0530 Subject: [PATCH] =?UTF-8?q?Github=20issue#2921,=20Cannot=20read=20property?= =?UTF-8?q?=20'title'=20of=20undefined=20=E2=80=94=20Should=20be=20fixed.?= =?UTF-8?q?=20Root=20cause=20is=20that=20some=20how=20a=20customer=20role?= =?UTF-8?q?=20user=20is=20being=20rendered=20in=20the=20topcoder=20team=20?= =?UTF-8?q?dialog.=20However,=20this=20fix=20should=20allow=20graceful=20f?= =?UTF-8?q?ailing=20in=20such=20situations=20as=20well.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TeamManagement/TopcoderManagementDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/TeamManagement/TopcoderManagementDialog.js b/src/components/TeamManagement/TopcoderManagementDialog.js index 32e5e611d..b30ed118f 100644 --- a/src/components/TeamManagement/TopcoderManagementDialog.js +++ b/src/components/TeamManagement/TopcoderManagementDialog.js @@ -172,7 +172,7 @@ class TopcoderManagementDialog extends React.Component { const lastName = _.get(member, 'lastName', '') let userFullName = `${firstName} ${lastName}` userFullName = userFullName.trim().length > 0 ? userFullName : 'Connect user' - const role = _.find(this.roles, r => r.value === member.role).title + const role = _.get(_.find(this.roles, r => r.value === member.role), 'title') return (