frontends
frontends copied to clipboard
[UTILS] Add api error handler
Add a util function that will handle API errors management
if (error instanceof ApiClientError) {
const errors = resolveApiErrors(error.details.errors);
for (const error of errors) {
pushError(error);
}
}
Acceptance Criteria
- [ ] Util is added to the
vue-demo-template - [ ] Util is added to the
vue-starter-template