Skip to content

Commit

Permalink
feat(core): set the right sidebar to display TOC by default (#6503)
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmFly committed Apr 11, 2024
1 parent 9dd4c74 commit 8579ac6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export const MultiTabSidebarHeaderSwitcher = ({
useEffect(() => {
const journalExtension = tabs.find(ext => ext.name === 'journal');
isJournal && journalExtension && setActiveTabName('journal');
!isJournal && setActiveTabName('outline');
}, [tabs, isJournal, setActiveTabName]);

const vars = assignInlineVars({
Expand Down

0 comments on commit 8579ac6

Please sign in to comment.