datalad / datalad-catalog

Create a user-friendly data catalog from structured metadata
https://datalad-catalog.netlify.app
MIT License
15 stars 11 forks source link

getRichData error when there is no homepage in additional display #450

Closed mslw closed 6 months ago

mslw commented 6 months ago

I think these two lines could have been left in the code by accident:

https://github.com/datalad/datalad-catalog/blob/821b12f51302b9a830dee00ac5f4f247aed0532e/datalad_catalog/catalog/assets/app_component_dataset.js#L502-L503

They don't use optional chaining (?.), like the code few lines above, so whenever the additional display does not contain a homepage, bad things happen - for me this resulted in dataset title being carried over when opening a subdataset in the same tab, and blank page when opened in a new tab.