Skip to content

Commit 8b66ce2

Browse files
committed
add optional chaining
1 parent e70986d commit 8b66ce2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/processMetadata.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default async function processMetadata(
2828
canonical: url,
2929
languages: Object.fromEntries(
3030
page.translations
31-
?.filter((t) => !!t.language)
31+
?.filter((t) => !!t?.language)
3232
?.map((t) => [
3333
t?.language,
3434
[BASE_URL, t?.language !== DEFAULT_LANG && t?.language, t?.slug]

0 commit comments

Comments
 (0)