inveniosoftware / react-invenio-deposit

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

files: new version import files doing nothing #557

Open jrcastro2 opened 2 years ago

jrcastro2 commented 2 years ago

Package version (if known): v0.19.15

Describe the bug

When creating a new version of a record, if the record was metadata-only, when deselecting the checkbox to add files, a blue rectangle box allowing to import files from previous version shows up, but there are no files to import. The button does nothing.

Steps to Reproduce

  1. Go to 'New upload'.
  2. Create a metadata-only record.
  3. Create a new version of the mentioned record.
  4. Deselect the metadata-only checkbox.
  5. See the blue rectangle box allowing you to import files.
  6. Click 'import files'.
  7. Nothing happens

Expected behavior

No box allowing you to import files from previous version as there are none, or a message saying there are no files that can be imported from previous version

Screenshots (if applicable)

image