]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-9874 Prevent js error when getting an http error on initial load of the web app
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>
Mon, 25 Sep 2017 10:21:16 +0000 (12:21 +0200)
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>
Mon, 25 Sep 2017 11:18:37 +0000 (13:18 +0200)
server/sonar-web/src/main/js/app/components/App.tsx

index 46cd8a6f620a2b45ab674e9f690ce383e967d73f..a46f417a3acfd5c2043dc0a3fe59b65f78bf4d4d 100644 (file)
@@ -56,7 +56,7 @@ class App extends React.PureComponent<Props, State> {
     this.props
       .fetchCurrentUser()
       .then(() => Promise.all([this.fetchAppState(), this.props.fetchLanguages()]))
-      .then(this.finishLoading, this.finishLoading);
+      .then(this.finishLoading, () => {});
   }
 
   componentWillUnmount() {