-
Notifications
You must be signed in to change notification settings - Fork 38
[MDS-5860] Fix inconsistent toast error message from api calls #3032
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clean clean!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch
services/core-api/app/api/notice_of_departure/resources/notice_of_departure_list.py
Outdated
Show resolved
Hide resolved
7eae17f
|
|
|
|
* remove throwing errors where no catch blocks exist * remove unnecessary conditional * updated test
Objective
Errors that were being thrown by the frontend were being overridden when an action creator contained
throw new Error()
, but it's invocation didn't contain acatch
block.Did a search throughout the frontends and only found a very limited number of catch blocks, so removed the throw new Error from all actionCreators where this didn't exist.
MDS-5860