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
commit 4fd5b01a83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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