From 8269e28981d3523c1192f738c52faa6e444b6b0c Mon Sep 17 00:00:00 2001 From: Jens Scheffler <95105677+jscheffl@users.noreply.github.com> Date: Fri, 1 Nov 2024 19:21:11 +0100 Subject: [PATCH] Fix Try Selector in Mapped Tasks also on Index 0 (#43590) Backport (#43591) * Fix Try Selector in Mapped Tasks also on Index 0 (cherry picked from commit 1c3d555cc92104a34b63bfaa404ba2474ed945d6) * Review Feedback, direct commit Co-authored-by: Brent Bovenzi --------- Co-authored-by: Brent Bovenzi --- airflow/www/static/js/api/useTIHistory.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airflow/www/static/js/api/useTIHistory.ts b/airflow/www/static/js/api/useTIHistory.ts index d90ce91f030d..1d1ee1d40f58 100644 --- a/airflow/www/static/js/api/useTIHistory.ts +++ b/airflow/www/static/js/api/useTIHistory.ts @@ -48,7 +48,7 @@ export default function useTIHistory({ .replace("_DAG_RUN_ID_", dagRunId) .replace("_TASK_ID_", taskId); - if (mapIndex && mapIndex > -1) { + if (mapIndex !== undefined && mapIndex > -1) { tiHistoryUrl = tiHistoryUrl.replace("/tries", `/${mapIndex}/tries`); }