fix duplicate shopping entries when using old list

This commit is contained in:
Chris Scoggins
2022-01-26 14:47:33 -06:00
parent 47823132f0
commit 4a48019885
4 changed files with 4 additions and 10 deletions

View File

@@ -834,7 +834,7 @@
this.$http.get('{% url 'api:recipe-detail' 123456 %}'.replace('123456', recipe.id)).then((response) => {
for (let s of response.data.steps) {
for (let i of s.ingredients) {
if (!i.is_header && i.food !== null && i.food.food_onhand === false) {
if (!i.is_header && i.food !== null && !i.food.ignore_food) {
this.shopping_list.entries.push({
'list_recipe': slr.id,
'food': i.food,