mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
refactoring: expenses landing list.
refactoring: customers landing list. refactoring: vendors landing list. refactoring: manual journals landing list.
This commit is contained in:
@@ -105,10 +105,12 @@ function AccountFormDialogContent({
|
||||
});
|
||||
};
|
||||
// Handle request error.
|
||||
const handleError = (errors) => {
|
||||
// const errorsTransformed = transformApiErrors(errors);
|
||||
// setErrors({ ...errorsTransformed });
|
||||
// setSubmitting(false);
|
||||
const handleError = (error) => {
|
||||
const { response: { data: { errors } } } = error;
|
||||
|
||||
const errorsTransformed = transformApiErrors(errors);
|
||||
setErrors({ ...errorsTransformed });
|
||||
setSubmitting(false);
|
||||
};
|
||||
if (accountId) {
|
||||
editAccountMutate(accountId, form)
|
||||
|
||||
Reference in New Issue
Block a user