Correction d'un bug qui empêchait de modifier les ingrédients d'un mélange.
This commit is contained in:
parent
3987b18fdd
commit
30ae5b1fc7
|
@ -65,7 +65,8 @@ class MixServiceImpl(
|
|||
}
|
||||
}
|
||||
if (entity.mixMaterials != null) {
|
||||
mix.mixMaterials = mixMaterialService.create(entity.mixMaterials!!).toMutableSet()
|
||||
mix.mixMaterials.clear()
|
||||
mix.mixMaterials.addAll(mixMaterialService.create(entity.mixMaterials!!).toMutableSet())
|
||||
}
|
||||
return update(mix)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue