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 cd8def6 commit e84a7c7Copy full SHA for e84a7c7
packages/app/src/app/overmind/internalActions.ts
@@ -371,7 +371,7 @@ export const onApiError: Action<ApiError> = (
371
error.message = result;
372
} else if ('errors' in result) {
373
const errors = values(result.errors)[0];
374
- const fields = Object.keys(result.errors[0]);
+ const fields = Object.keys(result.errors)[0];
375
if (Array.isArray(errors)) {
376
if (errors[0]) {
377
error.message = `${fields[0]}: ${errors[0]}`; // eslint-disable-line no-param-reassign,prefer-destructuring
0 commit comments