fix(customtemplate) fix custom var payload EE-4340 (#7752)

pull/7783/head
Ali 2022-10-03 09:49:28 +13:00 committed by GitHub
parent a0fa64781a
commit cd52e04a5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 6 deletions

View File

@ -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();