Add keys to v-for loops

This commit is contained in:
D. Berge
2022-03-18 16:15:06 +01:00
parent a5db9c984b
commit 3db453a271
3 changed files with 3 additions and 3 deletions

View File

@@ -3,7 +3,7 @@
<slot name="empty"></slot>
</div>
<div class="line-status" v-else-if="sequenceHref">
<router-link v-for="sequence in sequences"
<router-link v-for="sequence in sequences" :key="sequence.sequence"
class="sequence"
:class="sequence.status"
:style="style(sequence)"

View File

@@ -223,7 +223,7 @@
<v-subheader v-if="!selectedItemHistory || !selectedItemHistory.length"
class="justify-center"
>No more history</v-subheader>
<v-card v-for="item in selectedItemHistory" class="mt-5">
<v-card v-for="(item, key) in selectedItemHistory" class="mt-5" :key="key">
<v-card-title>{{selectedItem.kind}}</v-card-title>
<v-card-subtitle class="text-caption">{{item.tstamp}}</v-card-subtitle>
<v-card-text>

View File

@@ -87,7 +87,7 @@
All passed
</v-chip>
<v-chip v-for="label of item.labels"
<v-chip v-for="label of item.labels" :key="label"
class="mx-1"
small
:color="labels[label] && labels[label].view.colour"