Skip to content

Commit 099c2da

Browse files
committed
Bump API
1 parent fc06e17 commit 099c2da

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

bun.lockb

0 Bytes
Binary file not shown.

packages/gitbook/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"clean": "rm -rf ./.next && rm -rf ./public/~gitbook/static"
1717
},
1818
"dependencies": {
19-
"@gitbook/api": "^0.69.0",
19+
"@gitbook/api": "^0.71.0",
2020
"@gitbook/cache-do": "workspace:*",
2121
"@gitbook/emoji-codepoints": "workspace:*",
2222
"@gitbook/icons": "workspace:*",

packages/gitbook/src/lib/api.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,9 @@ const getRevisionReusableContentById = cache({
503503
spaceId,
504504
revisionId,
505505
reusableContentId,
506+
{
507+
metadata: false,
508+
},
506509
{
507510
...noCacheFetchOptions,
508511
signal: options.signal,
@@ -626,7 +629,7 @@ export const getReusableContent = async (
626629

627630
if (hasRevisionInMemory) {
628631
const revision = await getRevision(spaceId, revisionId, { metadata: false });
629-
return revision.reusableContents[reusableContentId] ?? null;
632+
return revision.reusableContents.find((reusableContent) => reusableContent.id === reusableContentId) ?? null;
630633
} else {
631634
return getRevisionReusableContentById(
632635
spaceId,

0 commit comments

Comments
 (0)