File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ export const generateJumpToState = async (
339
339
break ;
340
340
case "examples" :
341
341
categories = new Set (
342
- localeEntries . map ( ( entry ) => getExampleCategory ( entry . slug ) ) ,
342
+ localeEntries . map ( ( entry ) => getExampleCategory ( entry . id ) ) ,
343
343
) ;
344
344
break ;
345
345
default :
@@ -374,14 +374,15 @@ export const generateJumpToState = async (
374
374
// Examples are a special case where subentries are only shown if they are in the current category
375
375
if (
376
376
collectionType !== "examples" ||
377
- category === getExampleCategory ( currentEntrySlug )
377
+ category === getExampleCategory ( currentEntrySlug ) ||
378
+ category . toLowerCase ( ) === getExampleCategory ( currentEntrySlug )
378
379
) {
379
380
// Get all entries in the current category
380
381
let currentCategoryEntries = localeEntries . filter (
381
382
( entry ) =>
382
383
category ===
383
384
( collectionType === "examples"
384
- ? getExampleCategory ( entry . slug )
385
+ ? getExampleCategory ( entry . id )
385
386
: // @ts -expect-error - We know that the category exists because of the collection type
386
387
entry . data . category ?? "" ) ,
387
388
) ;
You can’t perform that action at this time.
0 commit comments