diff --git a/skyvern-frontend/src/routes/tasks/detail/hooks/useActions.ts b/skyvern-frontend/src/routes/tasks/detail/hooks/useActions.ts index 2a60fbac..3185a0c0 100644 --- a/skyvern-frontend/src/routes/tasks/detail/hooks/useActions.ts +++ b/skyvern-frontend/src/routes/tasks/detail/hooks/useActions.ts @@ -115,7 +115,7 @@ function useActions({ id }: Props): { return actions; }) .flat() - : taskActions?.map((action) => { + : taskActions?.map((action, index) => { return { reasoning: action.reasoning ?? "", confidence: action.confidence_float ?? undefined, @@ -125,7 +125,7 @@ function useActions({ id }: Props): { action.status === Status.Completed || action.status === Status.Skipped, stepId: action.step_id ?? "", - index: action.action_order ?? 0, + index: index, created_by: action.created_by, }; });