From c7a3b12d87e458ebc4fa4e733e92dca9e9b0b57f Mon Sep 17 00:00:00 2001 From: Dimitri POSTOLOV Date: Tue, 14 Nov 2023 20:10:02 +0100 Subject: [PATCH] add missing `return` Update page.tsx --- apps/www/app/docs/[[...slug]]/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/www/app/docs/[[...slug]]/page.tsx b/apps/www/app/docs/[[...slug]]/page.tsx index 710e5a3a7a0..0e82b350789 100644 --- a/apps/www/app/docs/[[...slug]]/page.tsx +++ b/apps/www/app/docs/[[...slug]]/page.tsx @@ -28,7 +28,7 @@ async function getDocFromParams({ params }: DocPageProps) { const doc = allDocs.find((doc) => doc.slugAsParams === slug) if (!doc) { - null + return null } return doc