diff --git a/cookbook/templates/shopping_list.html b/cookbook/templates/shopping_list.html
index 30de967f2..fd8bbd7cd 100644
--- a/cookbook/templates/shopping_list.html
+++ b/cookbook/templates/shopping_list.html
@@ -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
})