]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8679 fix race condition when fetching languages
authorStas Vilchik <vilchiks@gmail.com>
Wed, 25 Jan 2017 13:06:02 +0000 (14:06 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 25 Jan 2017 13:06:02 +0000 (14:06 +0100)
server/sonar-web/src/main/js/apps/quality-profiles/components/App.js

index 5b794284285b47ba2dac71cfb7e717efaa01a3b7..197aff92d67606899658f9fddacc3a4dabbbf916 100644 (file)
@@ -66,8 +66,7 @@ export default class App extends React.Component {
   }
 
   renderChild () {
-    const areLanguagesLoading = Object.keys(this.props.languages).length === 0;
-    if (this.state.loading || areLanguagesLoading) {
+    if (this.state.loading) {
       return <i className="spinner"/>;
     }