mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-07-28 22:51:51 +00:00
Fix some lint errors
This commit is contained in:
@@ -60,13 +60,13 @@ function attributeDetails(entry: GedcomEntry) {
|
||||
return null;
|
||||
}
|
||||
|
||||
let attributeName = entry.tree
|
||||
const attributeName = entry.tree
|
||||
.filter((subentry) => subentry.tag === 'TYPE')
|
||||
.flatMap((type) => getData(type))
|
||||
.join()
|
||||
.trim();
|
||||
|
||||
let attributeValue = getData(entry).join(' ').trim();
|
||||
const attributeValue = getData(entry).join(' ').trim();
|
||||
if(attributeName) {
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user