aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js')
-rw-r--r--server/sonar-web/src/main/js/apps/nav/app.jsx12
1 files changed, 9 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/nav/app.jsx b/server/sonar-web/src/main/js/apps/nav/app.jsx
index 4b0b6ed5fa0..1362bb8976b 100644
--- a/server/sonar-web/src/main/js/apps/nav/app.jsx
+++ b/server/sonar-web/src/main/js/apps/nav/app.jsx
@@ -14,16 +14,22 @@ export default {
renderGlobalNav(options) {
const el = document.getElementById('global-navigation');
- React.render(<GlobalNav {...options}/>, el);
+ if (el) {
+ React.render(<GlobalNav {...options}/>, el);
+ }
},
renderComponentNav(options) {
const el = document.getElementById('context-navigation');
- React.render(<ComponentNav {...options}/>, el);
+ if (el) {
+ React.render(<ComponentNav {...options}/>, el);
+ }
},
renderSettingsNav(options) {
const el = document.getElementById('context-navigation');
- React.render(<SettingsNav {...options}/>, el);
+ if (el) {
+ React.render(<SettingsNav {...options}/>, el);
+ }
}
};