made shopping list compatible with SLR entries without a recipe

This commit is contained in:
vabene1111
2024-12-29 13:44:43 +01:00
parent 359fcb24cf
commit 00148a2993

View File

@@ -238,7 +238,7 @@ export default {
if (e.recipe_mealplan !== null) {
let recipe_name = e.recipe_mealplan.recipe_name
if (recipes.indexOf(recipe_name) === -1) {
if (recipes.indexOf(recipe_name) === -1 && recipe_name !== undefined) {
recipes.push(recipe_name.substring(0, 14) + (recipe_name.length > 14 ? '..' : ''))
}