Update variables as returned by useRequest

Update variables to be consistent with variables returned by useRequest.
This commit is contained in:
nixocio
2021-02-23 16:02:13 -05:00
parent c9ec0d31f1
commit 7c2f6c95a6
2 changed files with 2 additions and 1 deletions

View File

@@ -223,7 +223,7 @@ function ScheduleForm({
const {
request: loadScheduleData,
error: contentError,
contentLoading,
isLoading: contentLoading,
result: { zoneOptions, credentials },
} = useRequest(
useCallback(async () => {

View File

@@ -447,6 +447,7 @@ describe('<ScheduleForm />', () => {
/>
);
});
await waitForElement(wrapper, 'ContentLoading', el => el.length === 0);
});
afterAll(() => {
wrapper.unmount();