Fix frontend admin tab crashing when no primary frontend is set

このコミットが含まれているのは:
tusooa 2023-11-11 19:22:59 -05:00
コミット 661d5b6d25
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 42AEC43D48433C51
1個のファイルの変更2行の追加2行の削除

ファイルの表示

@ -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