fixed adding recipes with headers to shopping

This commit is contained in:
vabene1111
2025-04-18 13:29:29 +02:00
parent 6bf605f98e
commit fe64da0841

View File

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