@@ -25,6 +25,7 @@ import {
2525 getModalPage ,
2626 getEventDetailsTobiraDataError ,
2727 getEventDetailsTobiraStatus ,
28+ getWorkflows ,
2829} from "../../../../selectors/eventDetailsSelectors" ;
2930import { getUserInformation } from "../../../../selectors/userInfoSelectors" ;
3031import EventDetailsStatisticsTab from "../ModalTabsAndPages/EventDetailsStatisticsTab" ;
@@ -133,6 +134,7 @@ const EventDetails = ({
133134 const captureAgents = useAppSelector ( state => getRecordings ( state ) ) ;
134135 const tobiraStatus = useAppSelector ( state => getEventDetailsTobiraStatus ( state ) ) ;
135136 const tobiraError = useAppSelector ( state => getEventDetailsTobiraDataError ( state ) ) ;
137+ const workflows = useAppSelector ( state => getWorkflows ( state ) ) ;
136138
137139 const tabs : {
138140 tabNameTranslation : ParseKeys ,
@@ -276,7 +278,7 @@ const EventDetails = ({
276278 formikRef = { formikRef }
277279 />
278280 ) }
279- { page === EventDetailsPage . Workflow && ! hasSchedulingProperties &&
281+ { page === EventDetailsPage . Workflow && ! workflows . scheduling &&
280282 ( ( workflowTabHierarchy === "workflows" && (
281283 < EventDetailsWorkflowTab
282284 eventId = { eventId }
@@ -300,7 +302,7 @@ const EventDetails = ({
300302 eventId = { eventId }
301303 />
302304 ) ) ) }
303- { page === EventDetailsPage . Workflow && hasSchedulingProperties &&
305+ { page === EventDetailsPage . Workflow && workflows . scheduling &&
304306 < EventDetailsWorkflowSchedulingTab
305307 eventId = { eventId }
306308 formikRef = { formikRef }
0 commit comments