We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c780a96 commit e6648aeCopy full SHA for e6648ae
packages/app/src/app/overmind/internalActions.ts
@@ -371,7 +371,9 @@ export const onApiError: Action<ApiError> = (
371
const result = response.data;
372
373
if (result) {
374
- if ('errors' in result) {
+ if (typeof result === 'string') {
375
+ error.message = result;
376
+ } else if ('errors' in result) {
377
const errors = values(result.errors)[0];
378
if (Array.isArray(errors)) {
379
if (errors[0]) {
0 commit comments