Fix 'undefined' being displayed as the person's name

This commit is contained in:
Przemek Wiech 2020-02-03 15:25:39 +01:00
parent 8e33f92a04
commit 6acd00d79b

View File

@ -387,7 +387,7 @@ function buildGedcom(indis: JsonIndi[]): GedcomData {
level: 1,
pointer: '',
tag: 'NAME',
data: `${indi.firstName} /${indi.lastName}/`,
data: `${indi.firstName || ''} /${indi.lastName || ''}/`,
tree: [],
},
{