Skip to content

Commit

Permalink
Fix TrySelector for Mapped Tasks in Logs and Details Grid Panel
Browse files Browse the repository at this point in the history
  • Loading branch information
jscheffl committed Oct 31, 2024
1 parent 54d6276 commit d99c1c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions airflow/www/static/js/api/useTIHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ export default function useTIHistory({
return useQuery<TaskInstanceCollection>(
["tiHistory", dagId, dagRunId, taskId, mapIndex],
() => {
const tiHistoryUrl = getMetaValue("task_tries_api")
let tiHistoryUrl = getMetaValue("task_tries_api")
.replace("_DAG_ID_", dagId)
.replace("_DAG_RUN_ID_", dagRunId)
.replace("_TASK_ID_", taskId);

if (mapIndex && mapIndex > -1) {
tiHistoryUrl.replace("/tries", `/${mapIndex}/tries`);
tiHistoryUrl = tiHistoryUrl.replace("/tries", `/${mapIndex}/tries`);
}

return axios.get(tiHistoryUrl);
Expand Down

0 comments on commit d99c1c1

Please sign in to comment.