From a8b245d0cf0538c22a144f44a72de17437fdb159 Mon Sep 17 00:00:00 2001 From: lukebarnard Date: Wed, 13 Dec 2017 10:42:11 +0000 Subject: [PATCH] Add unmounted guard --- src/components/structures/TagPanel.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/structures/TagPanel.js b/src/components/structures/TagPanel.js index 89bb0a8605..dbb75a2879 100644 --- a/src/components/structures/TagPanel.js +++ b/src/components/structures/TagPanel.js @@ -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}); }); });