aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2023-11-12 10:48:06 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2023-11-12 10:48:06 +0000
commit3781f0e3bf3f796772a42226bc2897eb0b3294b4 (patch)
tree1bfb9e5a35074097b313734292e8d2e1f48ce1d9
parentdbf14eee40bf6d7a4ce45605fc52c941013f7d4b (diff)
parent9ccd01352290759575cd65b521eeba149c5cb3b7 (diff)
Merge branch 'cherry-pick-faef2767' into 'release/2.6.x'
Fix admin dashboard crashing for 2.6.1 See merge request pleroma/pleroma-fe!1868
-rw-r--r--changelog.d/fix-admin-crash-when-no-primary-fe-set.fix1
-rw-r--r--src/components/settings_modal/admin_tabs/frontends_tab.vue4
2 files changed, 3 insertions, 2 deletions
diff --git a/changelog.d/fix-admin-crash-when-no-primary-fe-set.fix b/changelog.d/fix-admin-crash-when-no-primary-fe-set.fix
new file mode 100644
index 00000000..78eae3be
--- /dev/null
+++ b/changelog.d/fix-admin-crash-when-no-primary-fe-set.fix
@@ -0,0 +1 @@
+Fix frontend admin tab crashing when no primary frontend is set
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