Skip to content

Commit

Permalink
Fix TrySelector for Mapped Tasks in Logs and Details Grid Panel (#43566)
Browse files Browse the repository at this point in the history
(cherry picked from commit d99c1c1)
(cherry picked from commit af03e48)
  • Loading branch information
jscheffl authored and utkarsharma2 committed Nov 1, 2024
1 parent 6912409 commit 503f088
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 503f088

Please sign in to comment.