From: Grégoire Aubert Date: Mon, 23 Oct 2017 13:50:06 +0000 (+0200) Subject: Fix quality flaws X-Git-Tag: 6.7-RC1~40 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8ce624763914aee768784161a554dd6f2a374833;p=sonarqube.git Fix quality flaws --- diff --git a/server/sonar-web/src/main/js/app/components/AdminContainer.tsx b/server/sonar-web/src/main/js/app/components/AdminContainer.tsx index ea9c6f1301b..12f2f691d8e 100644 --- a/server/sonar-web/src/main/js/app/components/AdminContainer.tsx +++ b/server/sonar-web/src/main/js/app/components/AdminContainer.tsx @@ -45,8 +45,9 @@ class AdminContainer extends React.PureComponent { componentDidMount() { if (!this.context.canAdmin) { // workaround cyclic dependencies - const handleRequiredAuthorization = require('../utils/handleRequiredAuthorization').default; - handleRequiredAuthorization(); + import('../utils/handleRequiredAuthorization').then(handleRequredAuthorization => + handleRequredAuthorization.default() + ); } else { this.loadData(); }