mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-27 09:21:55 +02:00
Add unmounted guard
This commit is contained in:
parent
42c1f3cfe2
commit
a8b245d0cf
@ -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…
x
Reference in New Issue
Block a user