1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-14 23:30:05 +02:00

fix(cp-frontend): allow provision without env

This commit is contained in:
Sérgio Ramos 2017-07-20 17:30:52 +01:00 committed by Judit Greskovits
parent 4df7549799
commit 7f9c8b2847

View File

@ -153,7 +153,7 @@ class DeploymentGroupEditOrCreate extends Component {
deploymentGroupId, deploymentGroupId,
type: 'COMPOSE', type: 'COMPOSE',
format: 'YAML', format: 'YAML',
environment, environment: environment || '',
files, files,
raw: manifest raw: manifest
}) })
@ -379,16 +379,6 @@ class DeploymentGroupEditOrCreate extends Component {
return this.redirect({ stage: manifestStage }); 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](); return this.stages[stage]();
} }
} }