Fix viewing pdf from space (#2705)

This commit is contained in:
Greg Bergé
2025-01-09 12:28:48 +01:00
committed by GitHub
parent 7ee9158cd3
commit 6691492ef7
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'gitbook': patch
---
Fix viewing PDF from space
@@ -12,7 +12,7 @@ export async function getSiteOrSpacePointerForPDF(): Promise<
SiteContentPointer | SpaceContentPointer
> {
try {
return getSiteContentPointer();
return await getSiteContentPointer();
} catch (error) {
return getSpacePointer();
}