aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-03-15 22:30:19 +0100
committerMateja <mail@matejamaric.com>2021-03-15 22:30:19 +0100
commit002399d427f11646847904b11b1373204644aee2 (patch)
treee312609f6f66271e1cebc55230f600386dac13b6 /resources
parent5d79c586b963b1249eb148816a70d1cec618511f (diff)
downloadyota-laravel-002399d427f11646847904b11b1373204644aee2.tar.gz
yota-laravel-002399d427f11646847904b11b1373204644aee2.zip
Use v-bind:key in v-for.
Diffstat (limited to 'resources')
-rw-r--r--resources/js/components/activities.vue2
-rw-r--r--resources/js/components/call-sign-description.vue2
-rw-r--r--resources/js/components/call-sign-filter.vue2
3 files changed, 3 insertions, 3 deletions
diff --git a/resources/js/components/activities.vue b/resources/js/components/activities.vue
index 01e7002..928bae6 100644
--- a/resources/js/components/activities.vue
+++ b/resources/js/components/activities.vue
@@ -16,7 +16,7 @@
</tr>
</thead>
<tbody>
- <tr v-for="activity in activities">
+ <tr v-for="(activity, index) in activities" :key="index">
<td>{{ activity.operatorCall }}</td>
<td>{{ activity.fromTime }}</td>
<td>{{ activity.toTime }}</td>
diff --git a/resources/js/components/call-sign-description.vue b/resources/js/components/call-sign-description.vue
index b0dca4d..e930176 100644
--- a/resources/js/components/call-sign-description.vue
+++ b/resources/js/components/call-sign-description.vue
@@ -3,7 +3,7 @@
<div class="form-group">
<label for="special-call">Special Callsign:</label>
<select class="form-control" id="special-call" v-model="selected" name="scall" required>
- <option v-for="option in options" :value="option.sign" v-text="option.sign"></option>
+ <option v-for="option in options" :key="option.id" :value="option.sign" v-text="option.sign"></option>
</select>
</div>
diff --git a/resources/js/components/call-sign-filter.vue b/resources/js/components/call-sign-filter.vue
index e8d22a5..156bddc 100644
--- a/resources/js/components/call-sign-filter.vue
+++ b/resources/js/components/call-sign-filter.vue
@@ -3,7 +3,7 @@
<label for="call-sign">Filter by special callsign: </label>
<select id="call-sign" v-model="selected">
<option value="all">All</option>
- <option v-for="option in options" :value="option.sign" v-text="option.sign"></option>
+ <option v-for="option in options" :key="option.id" :value="option.sign" v-text="option.sign"></option>
</select>
</div>
</template>