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
Go to 'New upload'.
Create a metadata-only record.
Create a new version of the mentioned record.
Deselect the metadata-only checkbox.
See the blue rectangle box allowing you to import files.
Click 'import files'.
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
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
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)