Skip to content

Commit

Permalink
Id lint check
Browse files Browse the repository at this point in the history
  • Loading branch information
Mau Zsofia Abraham committed Feb 5, 2025
1 parent 179fa1d commit b7c82db
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions composables/use-tei-headers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,7 @@ const extractMetadata = function (
teiHeader: item.teiHeader,
} as simpleTEIMetadata;

template.id = item["@id"]
? item["@id"]
: item.teiHeader.fileDesc.publicationStmt.idno?.$
? item.teiHeader.fileDesc.publicationStmt.idno.$
: "no_id";
template.id = item["@id"] ?? item.teiHeader.fileDesc.publicationStmt.idno?.$ ?? "no_id";

if (item.teiHeader.fileDesc.sourceDesc.recordingStmt?.recording.date)
template.recordingDate =
Expand Down

0 comments on commit b7c82db

Please sign in to comment.