diff --git a/app/kubernetes/custom-templates/kube-create-custom-template-view/kube-create-custom-template-view.controller.js b/app/kubernetes/custom-templates/kube-create-custom-template-view/kube-create-custom-template-view.controller.js index 91ec7b4b5..66309f0e8 100644 --- a/app/kubernetes/custom-templates/kube-create-custom-template-view/kube-create-custom-template-view.controller.js +++ b/app/kubernetes/custom-templates/kube-create-custom-template-view/kube-create-custom-template-view.controller.js @@ -94,12 +94,7 @@ class KubeCreateCustomTemplateViewController { this.state.actionInProgress = true; try { - const formValues = { ...this.formValues, Variables: null }; - if (this.formValues.Variables.length > 0) { - formValues.Variables = JSON.stringify(this.formValues.Variables); - } - - const customTemplate = await this.createCustomTemplateByMethod(method, formValues); + const customTemplate = await this.createCustomTemplateByMethod(method, this.formValues); const accessControlData = this.formValues.AccessControlData; const userDetails = this.Authentication.getUserDetails();