From aa838eba54111b32b619f75e6adb9e1a6c44e9ad Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gr=C3=A9goire=20Aubert?= Date: Mon, 25 Sep 2017 12:21:16 +0200 Subject: [PATCH] SONAR-9874 Prevent js error when getting an http error on initial load of the web app --- server/sonar-web/src/main/js/app/components/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- 2.39.5