Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes getLogo for Providers with no Logo #144

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

jamesmisson
Copy link
Contributor

The last update to getLogo() caused an error when parsing v3 manifests with an agent/provider property but no logo: 'Cannot read properties of undefined (reading 'logo')'. This should fix that by checking more thoroughly for the existence of agent/provider. Test for this type of manifest also added.

Copy link

codesandbox bot commented Nov 25, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link
Contributor

@demiankatz demiankatz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, and the test proves it. Thanks, @jamesmisson!

@demiankatz demiankatz merged commit 56b02cb into IIIF-Commons:master Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants