fix(edge/template): custom template git fields not pre-filled [EE-6695] (#11112)

pull/11217/head
Oscar Zhou 2024-02-19 08:39:05 +13:00 committed by GitHub
parent 6b91fbf7f4
commit 6c89d3c0c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -105,9 +105,6 @@ export default class CreateEdgeStackViewController {
}
if (type === 'custom') {
const fileContent = await getCustomTemplateFile({ id: template.Id, git: !!template.GitConfig });
this.state.templateValues.file = fileContent;
this.formValues = {
...this.formValues,
DeploymentType: template.Type === StackType.Kubernetes ? DeploymentType.Kubernetes : DeploymentType.Compose,
@ -121,6 +118,9 @@ export default class CreateEdgeStackViewController {
}
: {}),
};
const fileContent = await getCustomTemplateFile({ id: template.Id, git: !!template.GitConfig });
this.state.templateValues.file = fileContent;
}
if (type === 'app') {