This is an automated email from the ASF dual-hosted git repository.

utkarsharma pushed a commit to branch sync_2-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 590a44deb504fea942cf7cc8c7a3525b2ef28c16
Author: Jens Scheffler <[email protected]>
AuthorDate: Fri Nov 1 19:21:11 2024 +0100

     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 <[email protected]>
    
    ---------
    
    Co-authored-by: Brent Bovenzi <[email protected]>
---
 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 d90ce91f030..1d1ee1d40f5 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`);
       }
 

Reply via email to