mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 15:09:32 -02:30
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