For not having :key="item.id" on <template>, I'm getting this error:
But when I do put it on there as such:
<template v-for="item in Object.values(cart)" :key="item.id">
…then I get this error:
Here's the code in question:
<template v-for="item in Object.values(cart)">
<tr :key="item.id">
<td>Digest {{ item.digestId }}</td>
<td>{{ item.duration_text }} subscription</td>
<td class="price-cell">${{ roundMoney(item.price, 2) }}</td>
<td class="trash-cell">
<fa-icon icon="times-circle" size="lg" @click="removeItem(item)" />
</td>
</tr>
<tr v-if="item.discounts.length" :key="`${item.id}-${item.discounts && item.discounts[0].id}`">
<td colspan="2">
<label>Code: {{ item.discounts[0].code }}</label>
</td>
<td colspan="2">
<span class="discount-amount">–${{ item.discounts[0].percent_off }}</span>
</td>
<td class="trash-discount-cell">
<fa-icon icon="times-circle" class="trash" @click="rmDscnt(item.discounts[0])" />
</td>
</tr>
</template>
How might I get around this circular-seeming issue?

