File tree 3 files changed +5
-2
lines changed
3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 16
16
"clean" : " rm -rf ./.next && rm -rf ./public/~gitbook/static"
17
17
},
18
18
"dependencies" : {
19
- "@gitbook/api" : " ^0.69 .0" ,
19
+ "@gitbook/api" : " ^0.71 .0" ,
20
20
"@gitbook/cache-do" : " workspace:*" ,
21
21
"@gitbook/emoji-codepoints" : " workspace:*" ,
22
22
"@gitbook/icons" : " workspace:*" ,
Original file line number Diff line number Diff line change @@ -503,6 +503,9 @@ const getRevisionReusableContentById = cache({
503
503
spaceId ,
504
504
revisionId ,
505
505
reusableContentId ,
506
+ {
507
+ metadata : false ,
508
+ } ,
506
509
{
507
510
...noCacheFetchOptions ,
508
511
signal : options . signal ,
@@ -626,7 +629,7 @@ export const getReusableContent = async (
626
629
627
630
if ( hasRevisionInMemory ) {
628
631
const revision = await getRevision ( spaceId , revisionId , { metadata : false } ) ;
629
- return revision . reusableContents [ reusableContentId ] ?? null ;
632
+ return revision . reusableContents . find ( ( reusableContent ) => reusableContent . id === reusableContentId ) ?? null ;
630
633
} else {
631
634
return getRevisionReusableContentById (
632
635
spaceId ,
You can’t perform that action at this time.
0 commit comments