Merge pull request #9398 from nixocio/ui_fix_variable_name

Update variables as returned by useRequest

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot] 2021-03-09 14:37:56 +00:00 committed by GitHub
commit 48537e8202
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();