mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
fixed adding recipes with headers to shopping
This commit is contained in:
@@ -101,13 +101,15 @@ function loadRecipeData() {
|
|||||||
|
|
||||||
recipe.steps.forEach(step => {
|
recipe.steps.forEach(step => {
|
||||||
step.ingredients.forEach(ingredient => {
|
step.ingredients.forEach(ingredient => {
|
||||||
dialogRecipe.entries.push({
|
if(!ingredient.isHeader){
|
||||||
amount: ingredient.amount,
|
dialogRecipe.entries.push({
|
||||||
food: ingredient.food,
|
amount: ingredient.amount,
|
||||||
unit: ingredient.unit,
|
food: ingredient.food,
|
||||||
ingredient: ingredient,
|
unit: ingredient.unit,
|
||||||
checked: (ingredient.food ? !(ingredient.food.ignoreShopping || ingredient.food.foodOnhand) : true),
|
ingredient: ingredient,
|
||||||
})
|
checked: (ingredient.food ? !(ingredient.food.ignoreShopping || ingredient.food.foodOnhand) : true),
|
||||||
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user