diff --git a/src/pages/account/miieditor/index.vue b/src/pages/account/miieditor/index.vue index be2278a..084ce1b 100644 --- a/src/pages/account/miieditor/index.vue +++ b/src/pages/account/miieditor/index.vue @@ -230,8 +230,7 @@ function setActiveTab(newTab: string) { // open the subtab with the selected element in it setActiveSubTab( - miiEditorJSON.tabs.filter(t => t.name === newTab)[0].subTabs?.[0].name || - '', + miiEditorJSON.tabs.filter(t => t.name === newTab)?.[0]?.subTabs?.[0]?.name ?? '', newTab ); activeTab.value = newTab; @@ -305,9 +304,6 @@ async function handleSave() {