Skip to content

Commit 6f0c0fe

Browse files
committed
use explicit keys
1 parent 5a75ef7 commit 6f0c0fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/Comment.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
}}</a>
1414
</div>
1515
<ul class="comment-children" v-show="open">
16-
<comment v-for="id in comment.kids" :id="id"></comment>
16+
<comment v-for="id in comment.kids" :key="id" :id="id"></comment>
1717
</ul>
1818
</li>
1919
</template>

src/views/ItemView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<spinner :show="loading"></spinner>
2121
</p>
2222
<ul v-if="!loading" class="comment-children">
23-
<comment v-for="id in item.kids" :id="id"></comment>
23+
<comment v-for="id in item.kids" :key="id" :id="id"></comment>
2424
</ul>
2525
</div>
2626
</template>

0 commit comments

Comments
 (0)