From c2cd8b4fccf2665d25db30a372c6385da29152f2 Mon Sep 17 00:00:00 2001 From: Grégoire Aubert Date: Thu, 4 May 2017 17:14:44 +0200 Subject: SONAR-9176 Remove useless request of organization list at app loading --- server/sonar-web/src/main/js/app/components/App.js | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'server/sonar-web') 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); -- cgit v1.2.3