Skip to content

Commit

Permalink
fix(product-listing): use product id as a key in listing
Browse files Browse the repository at this point in the history
  • Loading branch information
Maciej Kucmus committed Oct 31, 2019
1 parent 369bddc commit 21a41b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test-page/src/views/Category.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@
<div class="products">
<div class="products__list">
<SfProductCard
v-for="(product, i) in products"
:key="i"
v-for="(product) in products"
:key="product.id"
:title="product.name || ''"
:image="
product.cover
Expand Down Expand Up @@ -361,7 +361,7 @@ export default {
},
async mounted() {
this.productsResponse = await getProducts({
configuration: { associations: [{ name: "media" }] }
configuration: { associations: [{ name: "media" }, { name: "options"}] }
});
},
computed: {
Expand Down

0 comments on commit 21a41b4

Please sign in to comment.