Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deposit): page render and save a empty record #233

Merged

Conversation

philippgualdi
Copy link
Collaborator

Problem

The metadata structure for deposit has changed, but the backend is still sending the previous format, which lacks the fields key. This causes serialization errors and results in empty records being saved, as the backend attempts to process incomplete metadata.

Solution

This fix updates the serializer to handle cases where the fields key is missing from the metadata. By marking fields as optional, the serializer can now handle responses from the backend that omit this key, preventing the creation and saving of empty records.

@philippgualdi philippgualdi merged commit b04e184 into tu-graz-library:master Oct 31, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants