Added some guards against missing properties

This commit is contained in:
Thaum Rystra
2020-05-15 16:51:58 +02:00
parent 79e03e0e63
commit 3af48649f7
2 changed files with 7 additions and 7 deletions

View File

@@ -97,7 +97,7 @@
</div>
<div
v-if="spellSlots.length"
v-if="spellSlots && spellSlots.length"
class="spell-slots"
>
<v-card>
@@ -150,7 +150,7 @@
</div>
<div
v-if="weapons.length"
v-if="weapons && weapons.length"
class="weapon-proficiencies"
>
<v-card>
@@ -170,7 +170,7 @@
</v-card>
</div>
<div
v-if="armors.length"
v-if="armors && armors.length"
class="weapon-proficiencies"
>
<v-card>
@@ -190,7 +190,7 @@
</v-card>
</div>
<div
v-if="tools.length"
v-if="tools && tools.length"
class="weapon-proficiencies"
>
<v-card>
@@ -210,12 +210,12 @@
</v-card>
</div>
<div
v-if="languages.length"
v-if="languages && languages.length"
class="language-proficiencies"
>
<v-card>
<v-list>
<v-subheader v-if="languages.length">
<v-subheader>
Languages
</v-subheader>
<skill-list-tile

View File

@@ -28,7 +28,7 @@
arrow_downward
</v-icon>
{{ model.name }}
<template v-if="model.conditionalBenefits.length">
<template v-if="model.conditionalBenefits && model.conditionalBenefits.length">
*
</template>
<template v-if="model.passiveBonus">