diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-02-22 10:39:30 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-02-22 11:17:19 +0100 |
commit | ef39ea00c5822b114d728f73d92eed6635437b98 (patch) | |
tree | 14cc3591232af48f70ab6d440fc116e0bd05e739 /server/sonar-web/src/main/js/apps/projects/main.js | |
parent | a8b9c87ee38ab2458bd0293b1ee099266b7789ab (diff) | |
download | sonarqube-ef39ea00c5822b114d728f73d92eed6635437b98.tar.gz sonarqube-ef39ea00c5822b114d728f73d92eed6635437b98.zip |
improve code quality
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projects/main.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/projects/main.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/projects/main.js b/server/sonar-web/src/main/js/apps/projects/main.js index f634319880a..ae005a9165e 100644 --- a/server/sonar-web/src/main/js/apps/projects/main.js +++ b/server/sonar-web/src/main/js/apps/projects/main.js @@ -45,7 +45,7 @@ export default React.createClass({ }; }, - componentWillMount: function () { + componentWillMount () { this.requestProjects = _.debounce(this.requestProjects, 250); }, @@ -89,7 +89,7 @@ export default React.createClass({ if (this.state.page > 1) { projects = [].concat(this.state.projects, projects); } - this.setState({ ready: true, projects: projects, total: r.total }); + this.setState({ ready: true, projects, total: r.total }); }); }, @@ -102,7 +102,7 @@ export default React.createClass({ if (this.state.page > 1) { projects = [].concat(this.state.projects, projects); } - this.setState({ ready: true, projects: projects, total: r.total }); + this.setState({ ready: true, projects, total: r.total }); }); }, @@ -114,7 +114,7 @@ export default React.createClass({ if (this.state.page > 1) { projects = [].concat(this.state.projects, projects); } - this.setState({ ready: true, projects: projects, total: r.paging.total }); + this.setState({ ready: true, projects, total: r.paging.total }); }); }, |