|
|
@ -78,7 +78,7 @@ const PrepareNetworkForm = withRouter( |
|
|
|
}, [dataHostDetail, fatalErrorMessage, isLoading, panelHeaderElement]); |
|
|
|
}, [dataHostDetail, fatalErrorMessage, isLoading, panelHeaderElement]); |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|
if (isReady) { |
|
|
|
if (isReady && !fatalErrorMessage) { |
|
|
|
if (queryHostUUID) { |
|
|
|
if (queryHostUUID) { |
|
|
|
api |
|
|
|
api |
|
|
|
.get<APIHostDetail>( |
|
|
|
.get<APIHostDetail>( |
|
|
@ -102,7 +102,7 @@ const PrepareNetworkForm = withRouter( |
|
|
|
.finally(() => { |
|
|
|
.finally(() => { |
|
|
|
setIsLoading(false); |
|
|
|
setIsLoading(false); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} else if (!fatalErrorMessage) { |
|
|
|
} else { |
|
|
|
setFatalErrorMessage({ |
|
|
|
setFatalErrorMessage({ |
|
|
|
children: `No host UUID provided; cannot continue.`, |
|
|
|
children: `No host UUID provided; cannot continue.`, |
|
|
|
type: 'error', |
|
|
|
type: 'error', |
|
|
|