From cd52e04a5af58937f553a3bdba277c2459f27918 Mon Sep 17 00:00:00 2001 From: Ali <83188384+testA113@users.noreply.github.com> Date: Mon, 3 Oct 2022 09:49:28 +1300 Subject: [PATCH] fix(customtemplate) fix custom var payload EE-4340 (#7752) --- .../kube-create-custom-template-view.controller.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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();