fix: remove unnecessary @ts-expect-error in page.tsx
Next.js 14 types correctly handle async server components — the directive was unused and caused a type error during build. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -72,7 +72,6 @@ export default function HomePage({ searchParams }: PageProps) {
|
|||||||
<p className="mt-8 text-center text-zinc-500 animate-pulse">Searching…</p>
|
<p className="mt-8 text-center text-zinc-500 animate-pulse">Searching…</p>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{/* @ts-expect-error async server component */}
|
|
||||||
<SearchResults q={q} />
|
<SearchResults q={q} />
|
||||||
</Suspense>
|
</Suspense>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user