Addded parts order modal updates & translations
This commit is contained in:
@@ -47,7 +47,11 @@ function VendorsFormContainer({ refetch, bodyshop }) {
|
||||
message: t("vendors.successes.deleted"),
|
||||
});
|
||||
//TODO Better way to reset the field decorators?
|
||||
if (refetch) refetch().then((r) => form.resetFields());
|
||||
if (refetch)
|
||||
refetch().then((r) => {
|
||||
form.resetFields();
|
||||
form.resetFields();
|
||||
});
|
||||
setFormLoading(false);
|
||||
})
|
||||
.catch((error) => {
|
||||
@@ -71,7 +75,11 @@ function VendorsFormContainer({ refetch, bodyshop }) {
|
||||
message: t("vendors.successes.saved"),
|
||||
});
|
||||
//TODO Better way to reset the field decorators?
|
||||
if (refetch) refetch().form.resetFields();
|
||||
if (refetch)
|
||||
refetch().then(() => {
|
||||
form.resetFields();
|
||||
form.resetFields();
|
||||
});
|
||||
setFormLoading(false);
|
||||
})
|
||||
.catch((error) => {
|
||||
|
||||
Reference in New Issue
Block a user