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 => {
|
||||
step.ingredients.forEach(ingredient => {
|
||||
dialogRecipe.entries.push({
|
||||
amount: ingredient.amount,
|
||||
food: ingredient.food,
|
||||
unit: ingredient.unit,
|
||||
ingredient: ingredient,
|
||||
checked: (ingredient.food ? !(ingredient.food.ignoreShopping || ingredient.food.foodOnhand) : true),
|
||||
})
|
||||
if(!ingredient.isHeader){
|
||||
dialogRecipe.entries.push({
|
||||
amount: ingredient.amount,
|
||||
food: ingredient.food,
|
||||
unit: ingredient.unit,
|
||||
ingredient: ingredient,
|
||||
checked: (ingredient.food ? !(ingredient.food.ignoreShopping || ingredient.food.foodOnhand) : true),
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user