startyourlab / website

Main website for Start Your Lab materials deployed to GitHub Pages using Docusaurus.
https://www.startyourlab.com
MIT License
3 stars 0 forks source link

Bibliography renders sections that are not present in JSON #50

Closed aridyckovsky closed 3 years ago

aridyckovsky commented 3 years ago

Describe the bug

The peer-reviewed journal articles' bibliography generated by the Bibliography component will render details that are not present.

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://www.startyourlab.com/community/resources#peer-reviewed-journal-articles
  2. Scroll down to Zeng et al. (2021)
  3. See error: Volume and issue are not present in JSON for citation, but the component will render these fields

Expected behavior

If the JSON data does not have a field, render nothing instead of an empty element of the missing field.

Actual behavior

See reproduction step 3.