mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 10:15:43 +03:00
Add unmounted guard
This commit is contained in:
parent
42c1f3cfe2
commit
a8b245d0cf
1 changed files with 1 additions and 0 deletions
|
@ -64,6 +64,7 @@ const TagPanel = React.createClass({
|
|||
Promise.all(orderedGroupTags.map(
|
||||
(groupId) => FlairStore.getGroupProfileCached(this.context.matrixClient, groupId),
|
||||
)).then((orderedGroupTagProfiles) => {
|
||||
if (this.unmounted) return;
|
||||
this.setState({orderedGroupTagProfiles});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue