Skip to content

Commit

Permalink
made shopping list compatible with SLR entries without a recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
vabene1111 committed Dec 29, 2024
1 parent 359fcb2 commit 00148a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vue/src/components/ShoppingLineItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? '..' : ''))
}
Expand Down

0 comments on commit 00148a2

Please sign in to comment.