-
-
Notifications
You must be signed in to change notification settings - Fork 18
feat(components): visualize api errors for steppers #1931
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
base: main
Are you sure you want to change the base?
Conversation
| if (result.error || !result.data) return | ||
| if (result.error || !result.data) { | ||
| modelError.value = new Error() |
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.
Why an empty error here instead of adding a watch on api.value.errors as in the other places?
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.
This function is going to fail silently (security reasons) and their would be no error response from backend so I suppose we only need to take care of broken network connection.
| createdBy: accountId, | ||
| }, | ||
| }) | ||
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.
no need to remove empty lines before if statements, we have them all across the code
| text: t('globalErrorNoData'), | ||
| title: t('globalError'), | ||
| }) | ||
| error.value = new Error(t('globalError')) |
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.
Why not globalErrorNoData anymore?
📚 Description
This PR visualizes api errors for
📝 Checklist