We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d851b4 commit 7fc0e8eCopy full SHA for 7fc0e8e
1 file changed
src/pages/_utils.ts
@@ -317,7 +317,6 @@ export const generateJumpToState = async (
317
categories = new Set(referenceCategories);
318
break;
319
case "tutorials":
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));
322
323
case "examples":
@@ -365,8 +364,7 @@ export const generateJumpToState = async (
365
364
category ===
366
(collectionType === "examples"
367
? getExampleCategory(entry.slug)
368
- : // @ts-expect-error - We know that the category exists because of the collection type
369
- entry.data.category ?? ""),
+ : entry.data.category ?? ""),
370
);
371
372
// Add the entries in the category to the jumpToLinks
0 commit comments