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