@@ -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" ;
@@ -135,6 +136,7 @@ const EventDetails = ({
135136 const captureAgents = useAppSelector ( state => getRecordings ( state ) ) ;
136137 const tobiraStatus = useAppSelector ( state => getEventDetailsTobiraStatus ( state ) ) ;
137138 const tobiraError = useAppSelector ( state => getEventDetailsTobiraDataError ( state ) ) ;
139+ const workflows = useAppSelector ( state => getWorkflows ( state ) ) ;
138140
139141 const tabs : {
140142 tabNameTranslation : ParseKeys ,
@@ -314,7 +316,7 @@ const EventDetails = ({
314316 formikRef = { formikRef }
315317 />
316318 ) }
317- { page === EventDetailsPage . Workflow && ! hasSchedulingProperties &&
319+ { page === EventDetailsPage . Workflow && ! workflows . scheduling &&
318320 ( ( workflowTabHierarchy === "workflows" && (
319321 < EventDetailsWorkflowTab
320322 eventId = { eventId }
@@ -338,7 +340,7 @@ const EventDetails = ({
338340 eventId = { eventId }
339341 />
340342 ) ) ) }
341- { page === EventDetailsPage . Workflow && hasSchedulingProperties &&
343+ { page === EventDetailsPage . Workflow && workflows . scheduling &&
342344 < EventDetailsWorkflowSchedulingTab
343345 eventId = { eventId }
344346 formikRef = { formikRef }
0 commit comments