mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
fix: item error message.
This commit is contained in:
@@ -163,11 +163,10 @@ function ItemForm({
|
||||
history.push('/items');
|
||||
}
|
||||
};
|
||||
const onError = ({ response }) => {
|
||||
const onError = (errors) => {
|
||||
setSubmitting(false);
|
||||
|
||||
if (response.data.errors) {
|
||||
const _errors = transformApiErrors(response.data.errors);
|
||||
if (errors) {
|
||||
const _errors = transformApiErrors(errors);
|
||||
setErrors({ ..._errors });
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user