Fix lint warnings

This commit is contained in:
Przemek Więch
2026-05-12 00:29:35 +02:00
parent 05da5a5019
commit 20bddfaeb6
6 changed files with 47 additions and 30 deletions

View File

@@ -119,9 +119,9 @@ export function convertFams(people: Person[]): JsonFam[] {
if (husband) {
fam.husb = husband;
}
fam.children = Array.from(getSet(children, key)).map(
(child) => idToName.get(child)!,
);
fam.children = Array.from(getSet(children, key))
.map((child) => idToName.get(child))
.filter((x) => !!x) as string[];
if (
value.spouse &&
((value.spouse.marriage_date &&