aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/project-admin/deletion
diff options
context:
space:
mode:
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/>