jbaiter/pdiiif

Provider without logo causes exception

mikeapp opened this issue · 1 comments

Trying a Presentation 3 Manifest with a provider that does not contain a logo triggers an exception.

logo: provider.logo?.[0].id,
See also the previous line's use of homepage. It looks like these properties are being initialized to empty arrays if no value is provided in the Manifest. Debugger view:

Screen Shot 2022-12-07 at 2 45 10 PM

Sample Manifest: https://collections.library.yale.edu/manifests/15504927
Web page of object: https://collections.library.yale.edu/catalog/15504927

Thanks for reporting! I just pushed the fixed code to the public instance, can try again (with a cleared cache)?