diff --git a/app/src/views/user/UserEdit.vue b/app/src/views/user/UserEdit.vue index 74c8bca0..b5a7dafa 100644 --- a/app/src/views/user/UserEdit.vue +++ b/app/src/views/user/UserEdit.vue @@ -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) {