Allowed for null products, move ingredient spreading server-side #2

Merged
jacob merged 6 commits from nullproduct into master 2025-07-28 23:22:59 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 7705c3113c - Show all commits

View file

@ -154,8 +154,8 @@ async function saveShoppingList(outstandingItemGroups) {
}
const groupsMatch = (a, b) => {
if (a.product != b.product) return false;
if (a.name && a.name === b.name) return true;
if (!!a.product != !!b.product) return false;
if (a.name) return a.name === b.name;
return a.product.id === b.product.id;
}

View file

@ -6,7 +6,7 @@
<div class="product-details">
<h3 class="header">
<strong>
<a v-if="shoppingListItemGroup.product?.link" :href="shoppingListItemGroup.product?.link">{{ shoppingListItemGroup.product.name }}</a>
<a v-if="shoppingListItemGroup.product?.link" :href="shoppingListItemGroup.product?.link">{{ shoppingListItemGroup.product?.name }}</a>
<span v-else>{{ shoppingListItemGroup.name }}</span>
</strong>,
<small>