Skip to content

Commit c164f33

Browse files
committed
Add null check for meta object
1 parent c764b1f commit c164f33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Layout/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default function Layout({
4242
.filter((s) => s !== '')
4343
.join(' - ');
4444

45-
const current = meta.title.includes('Contribut') ? 'Contribute' : 'Docs';
45+
const current = meta?.title?.includes('Contribut') ? 'Contribute' : 'Docs';
4646

4747
return (
4848
<>

0 commit comments

Comments
 (0)