inveniosoftware / react-invenio-deposit

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

CustomField: Add a recursiveMapping function that fixes key errors wi… #642

Closed jpuerto-psc closed 1 year ago

jpuerto-psc commented 1 year ago

…th CustomFields that have nested Arrays.

:heart: Thank you for your contribution!

Description

This PR fixes a bug where CustomFields that have nested Arrays fail to publish. This failure is due to the "_key" attribute that does not get removed as part of the serialization.

Checklist

Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:

Third-party code

If you've added third-party code (copy/pasted or new dependencies), please reach out to an architect.

Reminder

By using GitHub, you have already agreed to the GitHub’s Terms of Service including that:

  1. You license your contribution under the same terms as the current repository’s license.
  2. You agree that you have the right to license your contribution under the current repository’s license.
jpuerto-psc commented 1 year ago

@zzacharo - Please review at your convenience.