Skip to content

Commit 7fc0e8e

Browse files
committed
Fix type errors
1 parent 8d851b4 commit 7fc0e8e

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/pages/_utils.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,6 @@ export const generateJumpToState = async (
317317
categories = new Set(referenceCategories);
318318
break;
319319
case "tutorials":
320-
// @ts-expect-error - We know that the category exists because of the collection type
321320
categories = new Set(localeEntries.map((entry) => entry.data.category));
322321
break;
323322
case "examples":
@@ -365,8 +364,7 @@ export const generateJumpToState = async (
365364
category ===
366365
(collectionType === "examples"
367366
? getExampleCategory(entry.slug)
368-
: // @ts-expect-error - We know that the category exists because of the collection type
369-
entry.data.category ?? ""),
367+
: entry.data.category ?? ""),
370368
);
371369

372370
// Add the entries in the category to the jumpToLinks

0 commit comments

Comments
 (0)