Skip to content

Commit 8e79c7a

Browse files
jschefflutkarsharma2
authored andcommitted
Fix TrySelector for Mapped Tasks in Logs and Details Grid Panel (#43566)
(cherry picked from commit d99c1c1) (cherry picked from commit af03e48)
1 parent c12e628 commit 8e79c7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

airflow/www/static/js/api/useTIHistory.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ export default function useTIHistory({
4343
return useQuery<TaskInstanceCollection>(
4444
["tiHistory", dagId, dagRunId, taskId, mapIndex],
4545
() => {
46-
const tiHistoryUrl = getMetaValue("task_tries_api")
46+
let tiHistoryUrl = getMetaValue("task_tries_api")
4747
.replace("_DAG_ID_", dagId)
4848
.replace("_DAG_RUN_ID_", dagRunId)
4949
.replace("_TASK_ID_", taskId);
5050

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

5555
return axios.get(tiHistoryUrl);

0 commit comments

Comments
 (0)