diff --git a/app/[locale]/[investigation]/layout.tsx b/app/[locale]/[investigation]/layout.tsx index 6e63a152..cb432868 100644 --- a/app/[locale]/[investigation]/layout.tsx +++ b/app/[locale]/[investigation]/layout.tsx @@ -45,7 +45,7 @@ export async function generateMetadata({ }, }); - const { title } = data?.entry; + const { title } = data?.entry || {}; return { title, twitter: { title } }; }