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:
parent
4df7549799
commit
7f9c8b2847
@ -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]();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user