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,
|
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]();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user