mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2025-12-24 02:39:20 -05:00
made shopping list compatible with SLR entries without a recipe
This commit is contained in:
@@ -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 ? '..' : ''))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user