Lists can have duplicates so add index to list item key

This commit is contained in:
2022-03-05 18:00:44 +01:00
parent a6dbb2ba59
commit 80a65f1940

View File

@@ -6,8 +6,8 @@
:class="{ shortList: shortList }"
>
<movies-list-item
v-for="movie in results"
:key="`${movie.type}-${movie.id}`"
v-for="(movie, index) in results"
:key="`${movie.type}-${movie.id}-${index}`"
:movie="movie"
/>
</ul>