Null value in reference causes crash
I am not sure how this happens, but on a couple of occasions authors have input references where the pubmedId
is null. This causes the browser to crash when editing the references. I can edit the DB and replace the null with an empty screen, but I am wondering how this might happen.
I am playing with adding a check to ensure objects do not contain null values here: https://gitlab.coko.foundation/micropublication/micropublication/blob/master/app/components/SubmissionForm.js#L321