diff --git a/app/edge/views/edge-stacks/createEdgeStackView/create-edge-stack-view.controller.js b/app/edge/views/edge-stacks/createEdgeStackView/create-edge-stack-view.controller.js index 2b8354161..75b122f6c 100644 --- a/app/edge/views/edge-stacks/createEdgeStackView/create-edge-stack-view.controller.js +++ b/app/edge/views/edge-stacks/createEdgeStackView/create-edge-stack-view.controller.js @@ -345,7 +345,7 @@ export default class CreateEdgeStackViewController { RepositoryUsername: this.formValues.RepositoryUsername, RepositoryPassword: this.formValues.RepositoryPassword, TLSSkipVerify: this.formValues.TLSSkipVerify, - CreatedFromCustomTemplateID: this.state.templateValues.template.Id, + CreatedFromCustomTemplateID: this.state.templateValues.template && this.state.templateValues.template.Id, }; return this.EdgeStackService.createStackFromGitRepository( {