mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 23:37:39 -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) => {
|
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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleCancel = () => {
|
const handleCancel = () => {
|
||||||
history.push(`/inventories/inventory/${id}/groups/${groupId}`);
|
history.push(`/inventories/inventory/${id}/groups/${groupId}/details`);
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user