From 7f9c8b2847fecbe95a67a0461456383344015d52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Thu, 20 Jul 2017 17:30:52 +0100 Subject: [PATCH] fix(cp-frontend): allow provision without env --- .../src/containers/manifest/edit-or-create.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/packages/cp-frontend/src/containers/manifest/edit-or-create.js b/packages/cp-frontend/src/containers/manifest/edit-or-create.js index 25dfb71a..e160b23f 100644 --- a/packages/cp-frontend/src/containers/manifest/edit-or-create.js +++ b/packages/cp-frontend/src/containers/manifest/edit-or-create.js @@ -153,7 +153,7 @@ class DeploymentGroupEditOrCreate extends Component { deploymentGroupId, type: 'COMPOSE', format: 'YAML', - environment, + environment: environment || '', files, raw: manifest }) @@ -379,16 +379,6 @@ class DeploymentGroupEditOrCreate extends Component { return this.redirect({ stage: manifestStage }); } - if (stage === 'review' && !this.state.environment) { - if (!this.state.manifest) { - return this.redirect({ stage: manifestStage }); - } - - if (!this.state.environment) { - return this.redirect({ stage: 'environment' }); - } - } - return this.stages[stage](); } }