Skip to content

Commit

Permalink
Merge branch 'variant-dropdown-styling' of https://github.com/Gitbook…
Browse files Browse the repository at this point in the history
…IO/gitbook into variant-dropdown-styling
  • Loading branch information
zenoachtig committed Jan 9, 2025
2 parents 5bc13ad + 231fc90 commit 27171da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tasty-rocks-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'gitbook': patch
---

Fix viewing PDF from space
2 changes: 1 addition & 1 deletion packages/gitbook/src/app/(space)/~gitbook/pdf/pointer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export async function getSiteOrSpacePointerForPDF(): Promise<
SiteContentPointer | SpaceContentPointer
> {
try {
return getSiteContentPointer();
return await getSiteContentPointer();
} catch (error) {
return getSpacePointer();
}
Expand Down

0 comments on commit 27171da

Please sign in to comment.