diff --git a/packages/client/src/pages/Profile/Section/Body/index.js b/packages/client/src/pages/Profile/Section/Body/index.js index dcd705daca..126f7d6726 100644 --- a/packages/client/src/pages/Profile/Section/Body/index.js +++ b/packages/client/src/pages/Profile/Section/Body/index.js @@ -94,7 +94,7 @@ const SectionBodyContent = (props) => { const getCurrentTabId = () => { const path = location.pathname; const currentTab = data.find((item) => path.includes(item.id)); - return currentTab !== -1 ? currentTab.id : data[0].id; + return currentTab !== -1 && data.length ? currentTab.id : data[0].id; }; const currentTabId = getCurrentTabId();