From 06a78b83addf969b48107782e76a3038673d5395 Mon Sep 17 00:00:00 2001
From: Zoltan Runyo <zoltan.runyo@ess.eu>
Date: Mon, 21 Mar 2022 17:09:00 +0100
Subject: [PATCH] ICSHWI-8790: Remove unnecessary ProcServ log error message
 for undeployed IOCs

---
 src/components/IOC/IOCLiveStatus.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/components/IOC/IOCLiveStatus.js b/src/components/IOC/IOCLiveStatus.js
index c45f2955..4f857e01 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>
-- 
GitLab