Fix frontend admin tab crashing when no primary frontend is set

This commit is contained in:
tusooa 2023-11-11 19:22:59 -05:00
parent c3c233c6fe
commit 661d5b6d25
No known key found for this signature in database
GPG Key ID: 42AEC43D48433C51
1 changed files with 2 additions and 2 deletions

View File

@ -33,9 +33,9 @@
>
<strong>{{ frontend.name }}</strong>
{{ ' ' }}
<span v-if="adminDraft[':pleroma'][':frontends'][':primary'].name === frontend.name">
<span v-if="adminDraft[':pleroma'][':frontends'][':primary']?.name === frontend.name">
<i18n-t
v-if="adminDraft[':pleroma'][':frontends'][':primary'].ref === frontend.refs[0]"
v-if="adminDraft[':pleroma'][':frontends'][':primary']?.ref === frontend.refs[0]"
keypath="admin_dash.frontend.is_default"
/>
<i18n-t