@@ -26,6 +26,7 @@ import {
2626 getModalPage ,
2727 getEventDetailsTobiraDataError ,
2828 getEventDetailsTobiraStatus ,
29+ getWorkflows ,
2930} from "../../../../selectors/eventDetailsSelectors" ;
3031import { getUserInformation } from "../../../../selectors/userInfoSelectors" ;
3132import EventDetailsStatisticsTab from "../ModalTabsAndPages/EventDetailsStatisticsTab" ;
@@ -134,6 +135,7 @@ const EventDetails = ({
134135 const captureAgents = useAppSelector ( state => getRecordings ( state ) ) ;
135136 const tobiraStatus = useAppSelector ( state => getEventDetailsTobiraStatus ( state ) ) ;
136137 const tobiraError = useAppSelector ( state => getEventDetailsTobiraDataError ( state ) ) ;
138+ const workflows = useAppSelector ( state => getWorkflows ( state ) ) ;
137139
138140 const tabs : {
139141 tabNameTranslation : ParseKeys ,
@@ -277,7 +279,7 @@ const EventDetails = ({
277279 formikRef = { formikRef }
278280 />
279281 ) }
280- { page === EventDetailsPage . Workflow && ! hasSchedulingProperties &&
282+ { page === EventDetailsPage . Workflow && ! workflows . scheduling &&
281283 ( ( workflowTabHierarchy === "workflows" && (
282284 < EventDetailsWorkflowTab
283285 eventId = { eventId }
@@ -301,7 +303,7 @@ const EventDetails = ({
301303 eventId = { eventId }
302304 />
303305 ) ) ) }
304- { page === EventDetailsPage . Workflow && hasSchedulingProperties &&
306+ { page === EventDetailsPage . Workflow && workflows . scheduling &&
305307 < EventDetailsWorkflowSchedulingTab
306308 eventId = { eventId }
307309 formikRef = { formikRef }
0 commit comments