Correction d'un bug qui empêchait de modifier les ingrédients d'un mélange.

This commit is contained in:
FyloZ 2021-03-29 20:47:05 -04:00
parent 3987b18fdd
commit 30ae5b1fc7
1 changed files with 2 additions and 1 deletions

View File

@ -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)
}