Lists can have duplicates so add index to list item key
This commit is contained in:
@@ -6,8 +6,8 @@
|
|||||||
:class="{ shortList: shortList }"
|
:class="{ shortList: shortList }"
|
||||||
>
|
>
|
||||||
<movies-list-item
|
<movies-list-item
|
||||||
v-for="movie in results"
|
v-for="(movie, index) in results"
|
||||||
:key="`${movie.type}-${movie.id}`"
|
:key="`${movie.type}-${movie.id}-${index}`"
|
||||||
:movie="movie"
|
:movie="movie"
|
||||||
/>
|
/>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user