From 3a34147be1e725f71b8e102ba53b1f5b9bd10b13 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Mon, 21 Nov 2016 10:03:40 +0100 Subject: step towards a single-entry-point js app (#1362) --- .../sonar-web/src/main/js/apps/project-admin/deletion/Deletion.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'server/sonar-web/src/main/js/apps/project-admin/deletion') 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 (
-- cgit v1.2.3