Fix edition of groups with groups

This commit is contained in:
Adria Navarro 2024-03-12 08:56:36 +01:00
parent 4b2c16998c
commit e754c660ee
1 changed files with 3 additions and 1 deletions

View File

@ -35,7 +35,9 @@ export function createGroupsStore() {
get: getGroup,
save: async group => {
const { scimInfo: _, ...dataToSave } = group
const { ...dataToSave } = group
delete dataToSave.scimInfo
delete dataToSave.userGroups
const response = await API.saveGroup(dataToSave)
group._id = response._id
group._rev = response._rev