From e8d9cc6ad95d50a7b8e1e59c273bc81b493fabbf Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Wed, 27 Jan 2021 17:47:51 +0100 Subject: [PATCH] shopping list null entry --- cookbook/templates/shopping_list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/templates/shopping_list.html b/cookbook/templates/shopping_list.html index 2d2f04285..5fb6937c2 100644 --- a/cookbook/templates/shopping_list.html +++ b/cookbook/templates/shopping_list.html @@ -519,7 +519,7 @@ if (entry.food.id === item.food.id) { if (entry.unit === null && item.unit === null) { return true - } else if (entry.unit.id === item.unit.id) { + } else if (entry.unit !== null && item.unit !== null && entry.unit.id === item.unit.id) { return true } }