aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-05-04 17:14:44 +0200
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-05-09 11:14:36 +0200
commitc2cd8b4fccf2665d25db30a372c6385da29152f2 (patch)
tree8f2bdc83d703867881d07c5c99ddb4ba9aa1b102 /server/sonar-web
parent07f8f89ffc8127524cba68dc98aa865a8cdae4dd (diff)
downloadsonarqube-c2cd8b4fccf2665d25db30a372c6385da29152f2.tar.gz
sonarqube-c2cd8b4fccf2665d25db30a372c6385da29152f2.zip
SONAR-9176 Remove useless request of organization list at app loading
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/app/components/App.js14
1 files changed, 3 insertions, 11 deletions
diff --git a/server/sonar-web/src/main/js/app/components/App.js b/server/sonar-web/src/main/js/app/components/App.js
index f2c392bc4ef..8f4d06a1078 100644
--- a/server/sonar-web/src/main/js/app/components/App.js
+++ b/server/sonar-web/src/main/js/app/components/App.js
@@ -22,7 +22,7 @@ import React from 'react';
import { connect } from 'react-redux';
import GlobalLoading from './GlobalLoading';
import { fetchCurrentUser } from '../../store/users/actions';
-import { fetchLanguages, fetchAppState, fetchOrganizations } from '../../store/rootActions';
+import { fetchLanguages, fetchAppState } from '../../store/rootActions';
class App extends React.PureComponent {
mounted: boolean;
@@ -31,7 +31,6 @@ class App extends React.PureComponent {
fetchAppState: React.PropTypes.func.isRequired,
fetchCurrentUser: React.PropTypes.func.isRequired,
fetchLanguages: React.PropTypes.func.isRequired,
- fetchOrganizations: React.PropTypes.func.isRequired,
children: React.PropTypes.element.isRequired
};
@@ -44,13 +43,7 @@ class App extends React.PureComponent {
this.props
.fetchCurrentUser()
- .then(() =>
- Promise.all([
- this.props.fetchAppState(),
- this.props.fetchOrganizations(),
- this.props.fetchLanguages()
- ])
- )
+ .then(() => Promise.all([this.props.fetchAppState(), this.props.fetchLanguages()]))
.then(this.finishLoading, this.finishLoading);
}
@@ -76,6 +69,5 @@ class App extends React.PureComponent {
export default connect(null, {
fetchAppState,
fetchCurrentUser,
- fetchLanguages,
- fetchOrganizations
+ fetchLanguages
})(App);