mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
More PR feedback
This commit is contained in:
parent
87fac367ac
commit
aa7a113324
1 changed files with 5 additions and 2 deletions
|
@ -72,11 +72,11 @@ module.exports = React.createClass({
|
||||||
} else if (this.state.summary) {
|
} else if (this.state.summary) {
|
||||||
const summary = this.state.summary;
|
const summary = this.state.summary;
|
||||||
let avatarUrl = null;
|
let avatarUrl = null;
|
||||||
if (summary.profile.avatar_url) {
|
if (summary.profile && summary.profile.avatar_url) {
|
||||||
avatarUrl = MatrixClientPeg.get().mxcUrlToHttp(summary.profile.avatar_url);
|
avatarUrl = MatrixClientPeg.get().mxcUrlToHttp(summary.profile.avatar_url);
|
||||||
}
|
}
|
||||||
let description = null;
|
let description = null;
|
||||||
if (summary.profile.long_description) {
|
if (summary.profile && summary.profile.long_description) {
|
||||||
description = sanitizedHtmlNode(summary.profile.long_description);
|
description = sanitizedHtmlNode(summary.profile.long_description);
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
|
@ -122,6 +122,9 @@ module.exports = React.createClass({
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
console.error("Invalid state for GroupView");
|
||||||
|
return <div />;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue