Skip to content

Commit

Permalink
Fix missing null-safe operator in logo check (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz authored Nov 29, 2024
1 parent cf7049c commit a4fc2b3
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 37 deletions.
78 changes: 42 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/IIIFResource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class IIIFResource extends ManifestResource {
if (Array.isArray(logo) && logo.length) {
logo = logo[0];
}
return logo["@id"] || logo.id;
return logo["@id"] || logo?.id;
}

getLicense(): string | null {
Expand Down

0 comments on commit a4fc2b3

Please sign in to comment.