Skip to content

Commit e84a7c7

Browse files
committed
typo
1 parent cd8def6 commit e84a7c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/app/src/app/overmind/internalActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ export const onApiError: Action<ApiError> = (
371371
error.message = result;
372372
} else if ('errors' in result) {
373373
const errors = values(result.errors)[0];
374-
const fields = Object.keys(result.errors[0]);
374+
const fields = Object.keys(result.errors)[0];
375375
if (Array.isArray(errors)) {
376376
if (errors[0]) {
377377
error.message = `${fields[0]}: ${errors[0]}`; // eslint-disable-line no-param-reassign,prefer-destructuring

0 commit comments

Comments
 (0)