Skip to content

Commit

Permalink
Fix - Use of index as key in a v-for directive to prevent duplicate k…
Browse files Browse the repository at this point in the history
…ey errors (#10)
  • Loading branch information
beatgrabe authored and hacdias committed Jun 27, 2018
1 parent 294efef commit 2bb9171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/Files.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<i class="material-icons">home</i>
</router-link>

<span v-for="link in breadcrumbs" :key="link.name">
<span v-for="(link, index) in breadcrumbs" :key="index">
<span class="chevron"><i class="material-icons">keyboard_arrow_right</i></span>
<router-link :to="link.url">{{ link.name }}</router-link>
</span>
Expand Down

0 comments on commit 2bb9171

Please sign in to comment.