Choose the latest action in timeline (#1435)
This commit is contained in:
@@ -117,6 +117,10 @@ const router = createBrowserRouter([
|
||||
index: true,
|
||||
element: <Navigate to="overview" />,
|
||||
},
|
||||
{
|
||||
path: "blocks",
|
||||
element: <Navigate to="overview" />,
|
||||
},
|
||||
{
|
||||
path: "overview",
|
||||
element: <WorkflowRunOverview />,
|
||||
|
||||
@@ -67,8 +67,10 @@ function WorkflowRunOverview() {
|
||||
timelineItem.block.actions &&
|
||||
timelineItem.block.actions.length > 0
|
||||
) {
|
||||
return timelineItem.block
|
||||
.actions[0] as WorkflowRunOverviewActiveElement;
|
||||
const last = timelineItem.block.actions.length - 1;
|
||||
return timelineItem.block.actions[
|
||||
last
|
||||
] as WorkflowRunOverviewActiveElement;
|
||||
}
|
||||
return timelineItem.block;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user