Guard against missing members in avatars
Part of https://github.com/vector-im/riot-web/issues/11744
This commit is contained in:
parent
9c686bf501
commit
77b479d50c
2 changed files with 12 additions and 9 deletions
|
@ -55,7 +55,7 @@ module.exports = createReactClass({
|
|||
},
|
||||
|
||||
_getState: function(props) {
|
||||
if (props.member) {
|
||||
if (props.member && props.member.name) {
|
||||
return {
|
||||
name: props.member.name,
|
||||
title: props.title || props.member.userId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue