mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] Revert brackets notation
This commit is contained in:
parent
e58bfaedcd
commit
955c774602
1 changed files with 2 additions and 2 deletions
|
@ -282,8 +282,8 @@ export default {
|
|||
const newKey = key.replace('_', '').replace('es', '')
|
||||
const addDiff = arrayDiff(formData[key], user[dashedKey])
|
||||
const rmDiff = arrayDiff(user[dashedKey], formData[key])
|
||||
if (addDiff.length) data['add_' + newKey + '[]'] = addDiff
|
||||
if (rmDiff.length) data['remove_' + newKey + '[]'] = rmDiff
|
||||
if (addDiff.length) data['add_' + newKey] = addDiff
|
||||
if (rmDiff.length) data['remove_' + newKey] = rmDiff
|
||||
}
|
||||
|
||||
for (const key in formData) {
|
||||
|
|
Loading…
Reference in a new issue