Skip to content

Commit f5894bc

Browse files
authored
Fix incorrect revision ID in Markdown fetch logic (#3448)
1 parent 1b59e7c commit f5894bc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/happy-goats-cross.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'gitbook': patch
3+
---
4+
5+
Fix incorrect revision ID in Markdown fetch logic

packages/gitbook/src/routes/markdownPage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export async function servePageMarkdown(context: GitBookSiteContext, pagePath: s
3535
const markdown = await throwIfDataError(
3636
context.dataFetcher.getRevisionPageMarkdown({
3737
spaceId: context.space.id,
38-
revisionId: context.revision.id,
38+
revisionId: context.revisionId,
3939
pageId: page.id,
4040
})
4141
);

0 commit comments

Comments
 (0)