From d99c1c1a0f7f56b2886dca48f490c940b6e763a0 Mon Sep 17 00:00:00 2001 From: Jens Scheffler Date: Thu, 31 Oct 2024 22:44:30 +0100 Subject: [PATCH] Fix TrySelector for Mapped Tasks in Logs and Details Grid Panel --- airflow/www/static/js/api/useTIHistory.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/airflow/www/static/js/api/useTIHistory.ts b/airflow/www/static/js/api/useTIHistory.ts index 0293a39b9379b..d90ce91f030db 100644 --- a/airflow/www/static/js/api/useTIHistory.ts +++ b/airflow/www/static/js/api/useTIHistory.ts @@ -43,13 +43,13 @@ export default function useTIHistory({ return useQuery( ["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);