From: Grégoire Aubert Date: Mon, 25 Sep 2017 10:21:16 +0000 (+0200) Subject: SONAR-9874 Prevent js error when getting an http error on initial load of the web app X-Git-Tag: 6.6-RC1~255 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=aa838eba54111b32b619f75e6adb9e1a6c44e9ad;p=sonarqube.git SONAR-9874 Prevent js error when getting an http error on initial load of the web app --- diff --git a/server/sonar-web/src/main/js/app/components/App.tsx b/server/sonar-web/src/main/js/app/components/App.tsx index 46cd8a6f620..a46f417a3ac 100644 --- a/server/sonar-web/src/main/js/app/components/App.tsx +++ b/server/sonar-web/src/main/js/app/components/App.tsx @@ -56,7 +56,7 @@ class App extends React.PureComponent { this.props .fetchCurrentUser() .then(() => Promise.all([this.fetchAppState(), this.props.fetchLanguages()])) - .then(this.finishLoading, this.finishLoading); + .then(this.finishLoading, () => {}); } componentWillUnmount() {