Fix linting errors

This commit is contained in:
David Baker 2017-06-27 13:13:00 +01:00
parent 2aeaaf26ca
commit 6c9716637e
2 changed files with 10 additions and 8 deletions

View file

@ -39,13 +39,13 @@ module.exports = React.createClass({
this._loadGroupFromServer(this.props.groupId);
},
componentWillReceiveProps: function(new_props) {
if (this.props.groupId != new_props.groupId) {
componentWillReceiveProps: function(newProps) {
if (this.props.groupId != newProps.groupId) {
this.setState({
summary: null,
error: null,
})
this._loadGroupFromServer(new_props.groupId);
});
this._loadGroupFromServer(newProps.groupId);
}
},