mirror of
https://github.com/ansible/awx.git
synced 2026-02-27 07:56:06 -03:30
Merge pull request #11324 from keithjgrant/10655-duplicate-api-requests
Reduce duplicate fetches after saving inventory group
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user