use existing resources if undefined

This commit is contained in:
Pascal Fischer 2024-12-27 11:05:05 +01:00
parent b3c87cb5d1
commit 190708ba22

View File

@ -137,6 +137,8 @@ func (h *handler) updateGroup(w http.ResponseWriter, r *http.Request) {
resource.FromAPIRequest(&res)
resources = append(resources, resource)
}
} else {
resources = existingGroup.Resources
}
group := types.Group{