All v-for gets a key

This commit is contained in:
2020-03-10 10:15:53 +01:00
parent 6c22b0e54f
commit dd4875698c
5 changed files with 8 additions and 8 deletions

View File

@@ -3,7 +3,7 @@
<div class="container">
<h1 class="title">Alle viner</h1>
<div class="wines-container">
<Wine :wine="wine" v-for="wine in wines" />
<Wine :wine="wine" v-for="wine in wines" :key="wine" />
</div>
</div>
</div>