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: improve error-message handling when saving objects #2914

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

Birkbjo
Copy link
Member

@Birkbjo Birkbjo commented Aug 21, 2024

Backend errors can have multiple different response-structures. Adds a simple check for message in case errorReports or nested messages is not available. This should fix many cases of empty snackbars when trying to save due to an error.

@Birkbjo Birkbjo merged commit 9de41e8 into master Sep 30, 2024
6 checks passed
@Birkbjo Birkbjo deleted the fix/improve-save-error branch September 30, 2024 14:22
dhis2-bot added a commit that referenced this pull request Sep 30, 2024
## [32.31.12](v32.31.11...v32.31.12) (2024-09-30)

### Bug Fixes

* improve error-message handling when saving objects ([#2914](#2914)) ([9de41e8](9de41e8))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 32.31.12 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants