From 1deb4062946f083406fd95c35d39007c152a57d4 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 7 Jul 2017 10:08:29 +0100 Subject: [PATCH] Fix race --- src/components/structures/GroupView.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/structures/GroupView.js b/src/components/structures/GroupView.js index 71deaf529b..d3a06b915b 100644 --- a/src/components/structures/GroupView.js +++ b/src/components/structures/GroupView.js @@ -44,8 +44,9 @@ module.exports = React.createClass({ this.setState({ summary: null, error: null, + }, () => { + this._loadGroupFromServer(newProps.groupId); }); - this._loadGroupFromServer(newProps.groupId); } },