This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch v2-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v2-10-test by this push:
new af03e48c1e Fix TrySelector for Mapped Tasks in Logs and Details Grid
Panel (#43566)
af03e48c1e is described below
commit af03e48c1e154aa40360f43b9871ce5ed54a2855
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)
---
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);