mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-07-29 15:11:52 +00:00
upgrade prettier and run on all files
This commit is contained in:
@@ -289,8 +289,9 @@ export function getName(person: GedcomEntry): string | undefined {
|
||||
export function getFileName(fileEntry: GedcomEntry): string | undefined {
|
||||
const fileTitle = fileEntry?.tree.find((entry) => entry.tag === 'TITL')?.data;
|
||||
|
||||
const fileExtension = fileEntry?.tree.find((entry) => entry.tag === 'FORM')
|
||||
?.data;
|
||||
const fileExtension = fileEntry?.tree.find(
|
||||
(entry) => entry.tag === 'FORM',
|
||||
)?.data;
|
||||
|
||||
return fileTitle && fileExtension && fileTitle + '.' + fileExtension;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user