diff --git a/web/source/settings/lib/query/base.js b/web/source/settings/lib/query/base.js index 4a31fc37c..05d31925f 100644 --- a/web/source/settings/lib/query/base.js +++ b/web/source/settings/lib/query/base.js @@ -30,10 +30,8 @@ function convertToForm(obj) { formData.set(`${key}[${key2}]`, val2); } }); - } else { - if (val != undefined) { - formData.set(key, val); - } + } else if (val != undefined) { + formData.set(key, val); } }); return formData;