Răsfoiți Sursa

fix: update notFound() usage to be consistent

Aaron Bassett 6 luni în urmă
părinte
comite
8ad2a70587

+ 1 - 1
apps/developer-hub/src/components/Pages/BasePage/index.tsx

@@ -10,7 +10,7 @@ import { notFound } from "next/navigation";
 
 export function BasePage(props: { params: { slug: string[] } }) {
   const page = source.getPage(props.params.slug);
-  if (!page) return notFound();
+  if (!page) notFound();
 
   const MDX = page.data.body;