Skip to content

Commit 10114a6

Browse files
address copilot comment
Signed-off-by: Adhitya Mamallan <[email protected]>
1 parent e3b78b6 commit 10114a6

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

src/views/workflow-history-v2/workflow-history-event-group/workflow-history-event-group.tsx

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export default function WorkflowHistoryEventGroup({
7575
if (!event.eventId) return;
7676

7777
const eventMetadata = eventsMetadata[index];
78+
if (!eventMetadata) return;
7879

7980
const result = isPendingHistoryEvent(event)
8081
? formatPendingWorkflowHistoryEvent(event)
@@ -157,16 +158,18 @@ export default function WorkflowHistoryEventGroup({
157158
{eventsMetadata.at(-1)?.label}
158159
</styled.StatusContainer>
159160
<div>{timeMs ? formatDate(timeMs) : null}</div>
160-
<WorkflowHistoryEventGroupDuration
161-
startTime={startTimeMs}
162-
closeTime={closeTimeMs}
163-
workflowIsArchived={workflowIsArchived}
164-
eventsCount={events.length}
165-
workflowCloseStatus={workflowCloseStatus}
166-
loadingMoreEvents={showLoadingMoreEvents}
167-
hasMissingEvents={hasMissingEvents}
168-
workflowCloseTime={workflowCloseTimeMs}
169-
/>
161+
<div>
162+
<WorkflowHistoryEventGroupDuration
163+
startTime={startTimeMs}
164+
closeTime={closeTimeMs}
165+
workflowIsArchived={workflowIsArchived}
166+
eventsCount={events.length}
167+
workflowCloseStatus={workflowCloseStatus}
168+
loadingMoreEvents={showLoadingMoreEvents}
169+
hasMissingEvents={hasMissingEvents}
170+
workflowCloseTime={workflowCloseTimeMs}
171+
/>
172+
</div>
170173
<styled.SummarizedDetailsContainer>
171174
Placeholder for event details
172175
</styled.SummarizedDetailsContainer>

0 commit comments

Comments
 (0)