diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-10-23 15:50:06 +0200 |
---|---|---|
committer | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-10-23 08:01:13 -0700 |
commit | 8ce624763914aee768784161a554dd6f2a374833 (patch) | |
tree | d69f84fda6dee6ca2ec671192565a9a437339725 /server/sonar-web/src/main/js/app | |
parent | af7359271037ddcf327e0d9f76b0f6171a8e5840 (diff) | |
download | sonarqube-8ce624763914aee768784161a554dd6f2a374833.tar.gz sonarqube-8ce624763914aee768784161a554dd6f2a374833.zip |
Fix quality flaws
Diffstat (limited to 'server/sonar-web/src/main/js/app')
-rw-r--r-- | server/sonar-web/src/main/js/app/components/AdminContainer.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
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<Props> { 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(); } |