mirror of https://github.com/portainer/portainer
fix(customtemplate) fix custom var payload EE-4340 (#7752)
parent
a0fa64781a
commit
cd52e04a5a
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue