You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Add unmounted guard
This commit is contained in:
@@ -64,6 +64,7 @@ const TagPanel = React.createClass({
|
|||||||
Promise.all(orderedGroupTags.map(
|
Promise.all(orderedGroupTags.map(
|
||||||
(groupId) => FlairStore.getGroupProfileCached(this.context.matrixClient, groupId),
|
(groupId) => FlairStore.getGroupProfileCached(this.context.matrixClient, groupId),
|
||||||
)).then((orderedGroupTagProfiles) => {
|
)).then((orderedGroupTagProfiles) => {
|
||||||
|
if (this.unmounted) return;
|
||||||
this.setState({orderedGroupTagProfiles});
|
this.setState({orderedGroupTagProfiles});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user