aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/project-admin/deletion
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-11-21 10:03:40 +0100
committerStas Vilchik <vilchiks@gmail.com>2016-11-28 13:39:04 +0100
commit3a34147be1e725f71b8e102ba53b1f5b9bd10b13 (patch)
tree16ab51c591f124cf0e34a7005361392493a6ebc5 /server/sonar-web/src/main/js/apps/project-admin/deletion
parentbd96be1c6c971381952dff396e0e10ae9233a6b7 (diff)
downloadsonarqube-3a34147be1e725f71b8e102ba53b1f5b9bd10b13.tar.gz
sonarqube-3a34147be1e725f71b8e102ba53b1f5b9bd10b13.zip
step towards a single-entry-point js app (#1362)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/project-admin/deletion')
-rw-r--r--server/sonar-web/src/main/js/apps/project-admin/deletion/Deletion.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/project-admin/deletion/Deletion.js b/server/sonar-web/src/main/js/apps/project-admin/deletion/Deletion.js
index 67563891ade..52e4fbc1774 100644
--- a/server/sonar-web/src/main/js/apps/project-admin/deletion/Deletion.js
+++ b/server/sonar-web/src/main/js/apps/project-admin/deletion/Deletion.js
@@ -23,10 +23,14 @@ import Form from './Form';
export default class Deletion extends React.Component {
static propTypes = {
- component: React.PropTypes.object.isRequired
+ component: React.PropTypes.object
};
render () {
+ if (!this.props.component) {
+ return null;
+ }
+
return (
<div className="page page-limited">
<Header/>