fix: guard also_known_as access when undefined

This commit is contained in:
2026-06-11 13:52:44 +02:00
parent c05087a6c7
commit 8cb90b256c

View File

@@ -90,7 +90,7 @@ function PersonDetailPage() {
)}
{/* Also known as */}
{person.also_known_as.length > 0 && (
{person.also_known_as?.length > 0 && (
<div>
<p className="mb-1 text-xs font-medium text-muted-foreground">{t("person.alsoKnownAs")}</p>
<div className="flex flex-wrap gap-1">