Skip to content

Commit 38e9d6c

Browse files
authored
Merge pull request #64 from performant-software/feature/evq190_transmitters
EVQ #190 - Transmitters
2 parents 63d31b5 + ef2c505 commit 38e9d6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/EditContainer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type State = {
2020
item: any,
2121
loading: boolean,
2222
saving: boolean,
23-
validationErrors: Array<string>
23+
validationErrors: any
2424
};
2525

2626
const ERROR_EMPTY = 'can\'t be blank';
@@ -151,7 +151,7 @@ const useEditContainer = (WrappedComponent: ComponentType<any>) => (
151151
* @param status
152152
*/
153153
onError({ response: { data: { errors = {} }, status } }: any) {
154-
const validationErrors = [];
154+
const validationErrors = {};
155155

156156
_.each(Object.keys(errors), (key) => {
157157
const fieldErrors = errors[key];

0 commit comments

Comments
 (0)