1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-19 05:22:13 +03:00

Catch and log errors from getting group profile

This commit is contained in:
Luke Barnard
2017-11-28 10:11:25 +00:00
parent 9ed9422af8
commit 3342754a72

View File

@@ -52,6 +52,8 @@ const GroupTile = React.createClass({
componentWillMount: function() { componentWillMount: function() {
FlairStore.getGroupProfileCached(this.context.matrixClient, this.props.groupId).then((profile) => { FlairStore.getGroupProfileCached(this.context.matrixClient, this.props.groupId).then((profile) => {
this.setState({profile}); this.setState({profile});
}).catch((err) => {
console.error('Error whilst getting cached profile for GroupTile', err);
}); });
}, },