From 8d9728838c48aad2fe64f5c894aabca40230dde6 Mon Sep 17 00:00:00 2001 From: jacoblogan Date: Thu, 9 Mar 2023 17:08:19 -0700 Subject: [PATCH] null check on meta --- src/components/Layout/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Layout/index.tsx b/src/components/Layout/index.tsx index be9984265e1..da054448eff 100644 --- a/src/components/Layout/index.tsx +++ b/src/components/Layout/index.tsx @@ -42,7 +42,7 @@ export default function Layout({ .filter((s) => s !== '') .join(' - '); - const current = meta.title.includes('Contribut') ? 'Contribute' : 'Docs'; + const current = meta?.title?.includes('Contribut') ? 'Contribute' : 'Docs'; return ( <>