This is an automated email from the ASF dual-hosted git repository.
bbovenzi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new bc6e325c40 Fix TrySelector for Mapped Tasks in Logs and Details Grid
Panel (#43565)
bc6e325c40 is described below
commit bc6e325c4035eb26318444e42039e2e2bdd4b3e7
Author: Jens Scheffler <[email protected]>
AuthorDate: Fri Nov 1 01:17:16 2024 +0100
Fix TrySelector for Mapped Tasks in Logs and Details Grid Panel (#43565)
---
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);