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