patch NPE on Pill when lazyloading members
This commit is contained in:
parent
2da45277cd
commit
2d8880ec5f
1 changed files with 1 additions and 0 deletions
|
@ -207,6 +207,7 @@ const Pill = React.createClass({
|
|||
const member = this.state.member;
|
||||
if (member) {
|
||||
userId = member.userId;
|
||||
member.rawDisplayName = member.rawDisplayName || '';
|
||||
linkText = member.rawDisplayName.replace(' (IRC)', ''); // FIXME when groups are done
|
||||
if (this.props.shouldShowPillAvatar) {
|
||||
avatar = <MemberAvatar member={member} width={16} height={16} />;
|
||||
|
|
Loading…
Reference in a new issue