Do not init a group store when no groupId specified
(in RightPanel), otherwise the store will happily send requests to the server for the `undefined` group.
This commit is contained in:
parent
31c5122fa6
commit
cd26f63315
1 changed files with 2 additions and 1 deletions
|
@ -127,8 +127,9 @@ module.exports = React.createClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
_initGroupStore(groupId) {
|
_initGroupStore(groupId) {
|
||||||
|
if (!groupId) return;
|
||||||
this._groupStore = GroupStoreCache.getGroupStore(
|
this._groupStore = GroupStoreCache.getGroupStore(
|
||||||
this.context.matrixClient, this.props.groupId,
|
this.context.matrixClient, groupId,
|
||||||
);
|
);
|
||||||
this._groupStore.registerListener(this.onGroupStoreUpdated);
|
this._groupStore.registerListener(this.onGroupStoreUpdated);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue