diff --git a/src/renderer/src/pages/home/Tabs/index.tsx b/src/renderer/src/pages/home/Tabs/index.tsx index 33d6473432..775a045d95 100644 --- a/src/renderer/src/pages/home/Tabs/index.tsx +++ b/src/renderer/src/pages/home/Tabs/index.tsx @@ -29,7 +29,7 @@ interface Props { style?: React.CSSProperties } -let _tab: any = '' +let _tab: Tab | null = null const HomeTabs: FC = ({ activeAssistant, @@ -103,7 +103,7 @@ const HomeTabs: FC = ({ if (position === 'right' && topicPosition === 'right' && tab === 'assistants') { setTab('topic') } - if (position === 'left' && topicPosition === 'right' && tab === 'topic') { + if (position === 'left' && topicPosition === 'right' && (tab === 'topic' || tab === 'settings')) { setTab('assistants') } }, [position, tab, topicPosition, forceToSeeAllTab])