aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortusooa <tusooa@kazv.moe>2023-11-11 19:22:59 -0500
committertusooa <tusooa@kazv.moe>2023-11-11 19:27:38 -0500
commit661d5b6d2577409cf8780beb6a9ef42dc0102c4c (patch)
tree26fd2f08cc56ae4bec3e96606aa0f95f21a552bb /src
parentc3c233c6fe8291bc4d691250144fb6a65e7de594 (diff)
Fix frontend admin tab crashing when no primary frontend is set
Diffstat (limited to 'src')
-rw-r--r--src/components/settings_modal/admin_tabs/frontends_tab.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/settings_modal/admin_tabs/frontends_tab.vue b/src/components/settings_modal/admin_tabs/frontends_tab.vue
index 13b8fa6b..25b08eb7 100644
--- a/src/components/settings_modal/admin_tabs/frontends_tab.vue
+++ b/src/components/settings_modal/admin_tabs/frontends_tab.vue
@@ -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