瀏覽代碼

fix: update notFound() usage to be consistent

Aaron Bassett 6 月之前
父節點
當前提交
8ad2a70587
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      apps/developer-hub/src/components/Pages/BasePage/index.tsx

+ 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;