is 'undefined' but no error is thrown and so the next request is made to add the record to the community and the URL looks like:
https://data.msdlive.org/api/records/undefined/draft/review
and THAT causes an error to be thrown.
Add some checks in that try block to make sure it has an ID and if not show an error message to the user and ask them to try again. I
I'm seeing this on prod, I can't explain why it happened/happens but lets handle it better and add some logging:
msdlive-rdm-app/assets/js/invenio_app_rdm/msdlive_components/modals/MsdliveNewUploadModal.js
the id from:
is 'undefined' but no error is thrown and so the next request is made to add the record to the community and the URL looks like:
https://data.msdlive.org/api/records/undefined/draft/review
and THAT causes an error to be thrown.
Add some checks in that try block to make sure it has an ID and if not show an error message to the user and ask them to try again. I
see: https://pnnl-l9.sentry.io/issues/5142392335/events/d0a524a1e2e540ae88f1fe2a1e5c56b7/