瀏覽代碼

Fix frontend admin tab crashing when no primary frontend is set

tusooa 1 年之前
父節點
當前提交
661d5b6d25
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/components/settings_modal/admin_tabs/frontends_tab.vue

+ 2 - 2
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