Add empty check

pull/1429/head
Cagatay Civici 2021-08-05 16:14:06 +03:00
parent 3db191507f
commit 12aaed3a44
1 changed files with 1 additions and 1 deletions

View File

@ -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">