check if roles are present in store, this may happen when going to the admin interface

This commit is contained in:
Moriz Wahl 2023-07-24 15:53:07 +02:00
parent 3505460ea8
commit 1d2bb05069

View File

@ -49,7 +49,7 @@
</b-nav-item>
<b-nav-item
class="mb-3 text-light"
v-if="$store.state.roles.length > 0"
v-if="$store.state.roles && $store.state.roles.length > 0"
@click="$emit('admin')"
active-class="activeRoute"
>