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 => {
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),
})
}
})
})