1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-14 15:20:06 +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,
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]();
}
}