From 7582954337ea40c28310bc0a22db2467c53f72c2 Mon Sep 17 00:00:00 2001 From: elforjani3 Date: Sat, 31 Jul 2021 13:40:16 +0200 Subject: [PATCH] LOOK.. --- .../ItemCategoryDialog/ItemCategoryForm.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/client/src/containers/Dialogs/ItemCategoryDialog/ItemCategoryForm.js b/client/src/containers/Dialogs/ItemCategoryDialog/ItemCategoryForm.js index 7610f67ea..5123f4682 100644 --- a/client/src/containers/Dialogs/ItemCategoryDialog/ItemCategoryForm.js +++ b/client/src/containers/Dialogs/ItemCategoryDialog/ItemCategoryForm.js @@ -9,10 +9,10 @@ import { transformToForm } from 'utils'; import { CreateItemCategoryFormSchema, EditItemCategoryFormSchema, -} from './ItemCategoryForm.schema'; +} from './itemCategoryForm.schema'; import withDialogActions from 'containers/Dialog/withDialogActions'; -import ItemCategoryFormContent from './ItemCategoryFormContent' +import ItemCategoryFormContent from './ItemCategoryFormContent'; import { compose } from 'utils'; const defaultInitialValues = { @@ -30,7 +30,6 @@ function ItemCategoryForm({ // #withDialogActions closeDialog, }) { - const { isNewMode, itemCategory, @@ -81,7 +80,11 @@ function ItemCategoryForm({ }; // Handle the response error. const onError = (error) => { - const { response: { data: { errors } } } = error; + const { + response: { + data: { errors }, + }, + } = error; transformErrors(errors, { setErrors }); setSubmitting(false); @@ -108,6 +111,4 @@ function ItemCategoryForm({ ); } -export default compose( - withDialogActions, -)(ItemCategoryForm); \ No newline at end of file +export default compose(withDialogActions)(ItemCategoryForm);