Skip to content

Commit 8d815fc

Browse files
committed
get libraryId from params
1 parent 097b57a commit 8d815fc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/DocsLayout.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,7 @@ export function DocsLayout({
418418
children,
419419
}: DocsLayoutProps) {
420420
const params = useParams({ strict: false })
421-
const { libraryId } = useParams({
422-
from: '/$libraryId/$version/docs',
423-
})
421+
const libraryId = params.libraryId || ''
424422
const { _splat } = params
425423

426424
const { framework: currentFramework } = useCurrentFramework(frameworks)

0 commit comments

Comments
 (0)