Fix: Null-Check für menu.falukant in StatusBar
- Prüfe ob menu.falukant und menu.falukant.children existieren - Verhindert TypeError wenn Falukant-Menü nicht geladen ist - Behebt: can't access property 'children', e.menu.falukant is undefined
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
<span class="status-icon">{{ item.icon }}:</span> <img :src="'/images/icons/falukant/relationship-' + item.image + '.png'" class="relationship-icon" />
|
||||
</div>
|
||||
</template>
|
||||
<span v-if="statusItems.length > 0">
|
||||
<span v-if="statusItems.length > 0 && menu.falukant && menu.falukant.children">
|
||||
<template v-for="(menuItem, key) in menu.falukant.children" :key="menuItem.id" >
|
||||
<img :src="'/images/icons/falukant/shortmap/' + key + '.png'" class="menu-icon" @click="openPage(menuItem)" :title="$t(`navigation.m-falukant.${key}`)" />
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user