mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
fixed null units breaking shopping lists
This commit is contained in:
@@ -592,7 +592,7 @@
|
||||
this.shopping_list.entries.push({
|
||||
'list_recipe': slr.id,
|
||||
'food': i.food,
|
||||
'unit': ((i.unit !== undefined) ? i.unit : {'name': ''}),
|
||||
'unit': ((i.unit !== undefined && i.unit !== null) ? i.unit : {'name': ''}),
|
||||
'amount': i.amount,
|
||||
'order': 0
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user