problem: sometimes the content of the card does not match the title

solution: keyed each block
This commit is contained in:
Bob
2024-07-26 15:12:46 +08:00
parent 0a0cc18f28
commit c3eb690ef3
5 changed files with 6 additions and 6 deletions

View File

@@ -27,7 +27,7 @@
<Card.Description></Card.Description>
</Card.Header>
<Card.Content class="grid grid-cols-1 gap-2">
{#each $products as product}
{#each $products as product (product.ID)}
<div>
<ProductCardFromId {rocket} productID={product.ID}>
<ProductPurchases {rocket} {product} />