We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e70986d commit 8b66ce2Copy full SHA for 8b66ce2
src/lib/processMetadata.ts
@@ -28,7 +28,7 @@ export default async function processMetadata(
28
canonical: url,
29
languages: Object.fromEntries(
30
page.translations
31
- ?.filter((t) => !!t.language)
+ ?.filter((t) => !!t?.language)
32
?.map((t) => [
33
t?.language,
34
[BASE_URL, t?.language !== DEFAULT_LANG && t?.language, t?.slug]
0 commit comments