Skip to content

Commit

Permalink
Add empty check
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Aug 5, 2021
1 parent 3db1915 commit 12aaed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AppMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{{item.name}}
<Tag v-if="item.badge" :value="item.badge"></Tag>
</div>
<div class="menu-items" v-if="item.children">
<div class="menu-items" v-if="item.children && item.children.length">
<template v-for="child of item.children" :key="child.name">
<a v-if="child.href" :href="child.href" target="_blank">{{child.name}}</a>
<router-link v-if="child.to" :to="child.to">
Expand Down

0 comments on commit 12aaed3

Please sign in to comment.