fix: added null check to views accessors

This commit is contained in:
benimautner 2024-04-05 08:51:44 +02:00
parent 16f4d651aa
commit 3840065807
1 changed files with 2 additions and 2 deletions

View File

@ -9,10 +9,10 @@
<div
class="switch-view-container d-print-none"
:class="{'is-justify-content-flex-end': views.length === 1}"
:class="{'is-justify-content-flex-end': (views && views.length === 1)}"
>
<div
v-if="views.length > 1"
v-if="(views && views.length > 1)"
class="switch-view"
>
<BaseButton