Log warning in case of failed group profile fetch

pull/21833/head
lukebarnard 2018-01-02 15:58:24 +00:00
parent 31855f18f8
commit 833cd321f3
1 changed files with 2 additions and 0 deletions

View File

@ -58,6 +58,8 @@ export default React.createClass({
).then((profile) => { ).then((profile) => {
if (this.unmounted) return; if (this.unmounted) return;
this.setState({profile}); this.setState({profile});
}).catch((err) => {
console.warn('Could not fetch group profile for ' + this.props.tag, err);
}); });
} }
}, },