Merge pull request #11324 from keithjgrant/10655-duplicate-api-requests

Reduce duplicate fetches after saving inventory group
This commit is contained in:
Sarah Akus
2022-01-04 11:42:37 -05:00
committed by GitHub

View File

@@ -13,7 +13,7 @@ function InventoryGroupEdit({ inventoryGroup }) {
const handleSubmit = async (values) => { const handleSubmit = async (values) => {
try { try {
await GroupsAPI.update(groupId, values); await GroupsAPI.update(groupId, values);
history.push(`/inventories/inventory/${id}/groups/${groupId}`); history.push(`/inventories/inventory/${id}/groups/${groupId}/details`);
} catch (err) { } catch (err) {
setError(err); setError(err);
} }