mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 22:14:58 +08:00
Fix linting errors
This commit is contained in:
parent
2aeaaf26ca
commit
6c9716637e
@ -39,13 +39,13 @@ module.exports = React.createClass({
|
|||||||
this._loadGroupFromServer(this.props.groupId);
|
this._loadGroupFromServer(this.props.groupId);
|
||||||
},
|
},
|
||||||
|
|
||||||
componentWillReceiveProps: function(new_props) {
|
componentWillReceiveProps: function(newProps) {
|
||||||
if (this.props.groupId != new_props.groupId) {
|
if (this.props.groupId != newProps.groupId) {
|
||||||
this.setState({
|
this.setState({
|
||||||
summary: null,
|
summary: null,
|
||||||
error: null,
|
error: null,
|
||||||
})
|
});
|
||||||
this._loadGroupFromServer(new_props.groupId);
|
this._loadGroupFromServer(newProps.groupId);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -487,10 +487,12 @@ module.exports = React.createClass({
|
|||||||
this.notifyNewScreen('directory');
|
this.notifyNewScreen('directory');
|
||||||
break;
|
break;
|
||||||
case 'view_group':
|
case 'view_group':
|
||||||
|
{
|
||||||
const groupId = payload.group_id;
|
const groupId = payload.group_id;
|
||||||
this.setState({currentGroupId: groupId});
|
this.setState({currentGroupId: groupId});
|
||||||
this._setPage(PageTypes.GroupView);
|
this._setPage(PageTypes.GroupView);
|
||||||
this.notifyNewScreen('group/' + groupId);
|
this.notifyNewScreen('group/' + groupId);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 'view_home_page':
|
case 'view_home_page':
|
||||||
this._setPage(PageTypes.HomePage);
|
this._setPage(PageTypes.HomePage);
|
||||||
|
Loading…
Reference in New Issue
Block a user