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.
2 parents 63d31b5 + ef2c505 commit 38e9d6cCopy full SHA for 38e9d6c
src/common/EditContainer.js
@@ -20,7 +20,7 @@ type State = {
20
item: any,
21
loading: boolean,
22
saving: boolean,
23
- validationErrors: Array<string>
+ validationErrors: any
24
};
25
26
const ERROR_EMPTY = 'can\'t be blank';
@@ -151,7 +151,7 @@ const useEditContainer = (WrappedComponent: ComponentType<any>) => (
151
* @param status
152
*/
153
onError({ response: { data: { errors = {} }, status } }: any) {
154
- const validationErrors = [];
+ const validationErrors = {};
155
156
_.each(Object.keys(errors), (key) => {
157
const fieldErrors = errors[key];
0 commit comments