This is an automated email from the ASF dual-hosted git repository. utkarsharma pushed a commit to branch sync_2-10-test-rc2 in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 503f088f3a6249f17eb8c4299cf9e43da03d46f0 Author: Jens Scheffler <[email protected]> AuthorDate: Fri Nov 1 01:18:28 2024 +0100 Fix TrySelector for Mapped Tasks in Logs and Details Grid Panel (#43566) (cherry picked from commit d99c1c1a0f7f56b2886dca48f490c940b6e763a0) (cherry picked from commit af03e48c1e154aa40360f43b9871ce5ed54a2855) --- 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 0293a39b93..d90ce91f03 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<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);
