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
2 changed files with 2 additions and 1 deletions

View File

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

View File

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