Skip to content

Commit

Permalink
fix: use v-for with key (#438)
Browse files Browse the repository at this point in the history
  • Loading branch information
fjc0k authored and ulivz committed May 13, 2018
1 parent 22ffe52 commit 2076f7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/default-theme/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<NavLinks/>
<slot name="top"/>
<ul class="sidebar-links" v-if="items.length">
<li v-for="(item, i) in items">
<li v-for="(item, i) in items" :key="i">
<SidebarGroup v-if="item.type === 'group'"
:item="item"
:first="i === 0"
Expand Down

0 comments on commit 2076f7b

Please sign in to comment.