diff --git a/src/components/IOC/IOCLiveStatus.js b/src/components/IOC/IOCLiveStatus.js index c45f29554f10b0bd578a4d825994356acd9f4a48..4f857e019afbfe6e4079f7c8b8798ec80c0517a0 100644 --- a/src/components/IOC/IOCLiveStatus.js +++ b/src/components/IOC/IOCLiveStatus.js @@ -58,11 +58,11 @@ export function IOCLiveStatus({ ioc, currentCommand, commands, getCommands, butt </SimpleAccordion> <AccessControl allowedRoles={["DeploymentToolAdmin", "DeploymentToolIntegrator"]} renderNoAccess={() => <></>}> - <SimpleAccordion summary="ProcServLog info" defaultExpanded> - {liveIOC.activeDeployment?.host.csEntryId ? + <SimpleAccordion summary="ProcServLog info" expaned={liveIOC.activeDeployment}> + {liveIOC.activeDeployment && (liveIOC.activeDeployment.host.csEntryId ? <LokiContainer csEntryId={liveIOC.activeDeployment?.host.csEntryId} iocName={ioc.namingName} isDeployed={isIocDeployed(ioc)} /> : - <Alert severity="error" variant="standard">Invalid CSentry ID for target host</Alert> + <Alert severity="error" variant="standard">Invalid CSentry ID for target host</Alert>) } </SimpleAccordion> </AccessControl>