aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/projects/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projects/app.js')
-rw-r--r--server/sonar-web/src/main/js/apps/projects/app.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/projects/app.js b/server/sonar-web/src/main/js/apps/projects/app.js
index 917d7342adc..627a8a9b9cd 100644
--- a/server/sonar-web/src/main/js/apps/projects/app.js
+++ b/server/sonar-web/src/main/js/apps/projects/app.js
@@ -1,4 +1,5 @@
import React from 'react';
+import ReactDOM from 'react-dom';
import Main from './main';
import {getCurrentUser} from '../../api/users';
import '../../helpers/handlebars-helpers';
@@ -8,7 +9,7 @@ window.sonarqube.appStarted.then(options => {
let el = document.querySelector(options.el),
hasProvisionPermission = user.permissions.global.indexOf('provisioning') !== -1,
topLevelQualifiers = options.rootQualifiers;
- React.render(<Main hasProvisionPermission={hasProvisionPermission}
+ ReactDOM.render(<Main hasProvisionPermission={hasProvisionPermission}
topLevelQualifiers={topLevelQualifiers}/>, el);
});
});