mirror of
https://github.com/ansible/awx.git
synced 2026-04-14 14:39:26 -02:30
resolves iinfinite loop
This commit is contained in:
committed by
Shane McDonald
parent
2309feb6bd
commit
da951714d1
@@ -54,6 +54,7 @@ describe('<AssociateModal />', () => {
|
|||||||
|
|
||||||
test('should fetch and render list items', () => {
|
test('should fetch and render list items', () => {
|
||||||
expect(fetchRequest).toHaveBeenCalledTimes(1);
|
expect(fetchRequest).toHaveBeenCalledTimes(1);
|
||||||
|
expect(optionsRequest).toHaveBeenCalledTimes(1);
|
||||||
expect(wrapper.find('CheckboxListItem').length).toBe(3);
|
expect(wrapper.find('CheckboxListItem').length).toBe(3);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -141,8 +141,10 @@ function InstanceList() {
|
|||||||
[instanceGroupId]
|
[instanceGroupId]
|
||||||
);
|
);
|
||||||
|
|
||||||
const readInstancesOptions = () =>
|
const readInstancesOptions = useCallback(
|
||||||
InstanceGroupsAPI.readInstanceOptions(instanceGroupId);
|
() => InstanceGroupsAPI.readInstanceOptions(instanceGroupId),
|
||||||
|
[instanceGroupId]
|
||||||
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Reference in New Issue
Block a user