mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-04 07:01:49 -05:00
reduce duplicate fetches after saving inventory group
This commit is contained in:
@@ -13,14 +13,14 @@ 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);
|
||||
}
|
||||
};
|
||||
|
||||
const handleCancel = () => {
|
||||
history.push(`/inventories/inventory/${id}/groups/${groupId}`);
|
||||
history.push(`/inventories/inventory/${id}/groups/${groupId}/details`);
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user