inveniosoftware / react-invenio-deposit

React application for Invenio deposit forms.
https://react-invenio-deposit.readthedocs.io
MIT License
3 stars 46 forks source link

records: fix record visibility when community is changed. #549

Closed alejandromumo closed 2 years ago

alejandromumo commented 2 years ago

Currently record visibility is not changed when the community is selected in the deposit form. E.g. if a restricted community is selected, the record will still have "public" access even though the UI blocks the Public button.

After receiving an error from the backend, any change to the form will wipe the form as an unhandled exception is generated.

Additionally, the thrown exception does not have an error handler as is returning an HTML containing the flask exception's trackeback.

unknown

unknown2