app,server: Allow to set the person count when creating a recipe
This commit is contained in:
parent
614ff07552
commit
8987991139
4 changed files with 31 additions and 1 deletions
|
|
@ -357,6 +357,7 @@ pub fn RecipeCreator() -> Html {
|
|||
.iter()
|
||||
.map(|rcp_ig: &RecipeIngredient| (rcp_ig.id, rcp_ig.amount / (*pc) as f64))
|
||||
.collect(),
|
||||
person_count: (*pc) as _,
|
||||
steps: (*s).clone(),
|
||||
},
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue