File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -317,7 +317,8 @@ export const generateJumpToState = async (
317317 categories = new Set ( referenceCategories ) ;
318318 break ;
319319 case "tutorials" :
320- categories = new Set ( ( localeEntries as CollectionEntry < "tutorials" > [ ] ) . map ( ( entry ) => entry . data . category ) ) ;
320+ // @ts -expect-error - We know that the category exists because of the collection type
321+ categories = new Set ( localeEntries . map ( ( entry ) => entry . data . category ) ) ;
321322 break ;
322323 case "examples" :
323324 categories = new Set (
@@ -364,7 +365,7 @@ export const generateJumpToState = async (
364365 category ===
365366 ( collectionType === "examples"
366367 ? getExampleCategory ( entry . slug )
367- // @ts -ignore
368+ // @ts -expect-error - We know that the category exists because of the collection type
368369 : entry . data . category ?? "" ) ,
369370 ) ;
370371
You can’t perform that action at this time.
0 commit comments