diff --git a/.changeset/real-trains-perform.md b/.changeset/real-trains-perform.md new file mode 100644 index 0000000000..d76b47a87a --- /dev/null +++ b/.changeset/real-trains-perform.md @@ -0,0 +1,5 @@ +--- +"gitbook": patch +--- + +Fix page group not expanded by default diff --git a/packages/gitbook/src/components/TableOfContents/PageDocumentItem.tsx b/packages/gitbook/src/components/TableOfContents/PageDocumentItem.tsx index 4875633ac9..38879c41dd 100644 --- a/packages/gitbook/src/components/TableOfContents/PageDocumentItem.tsx +++ b/packages/gitbook/src/components/TableOfContents/PageDocumentItem.tsx @@ -1,4 +1,4 @@ -import { getPagePath, hasPageVisibleDescendant } from '@/lib/pages'; +import { getPagePaths, hasPageVisibleDescendant } from '@/lib/pages'; import { tcls } from '@/lib/tailwind'; import { type RevisionPage, @@ -27,7 +27,7 @@ export async function PageDocumentItem(props: {