This is an automated email from the ASF dual-hosted git repository.
jscheffl 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 ccbf1da24ec Fix Try Selector in Mapped Tasks also on Index 0 (#43590)
ccbf1da24ec is described below
commit ccbf1da24eca47afdd5669517e397517e889a8c5
Author: Jens Scheffler <[email protected]>
AuthorDate: Fri Nov 1 18:45:13 2024 +0100
Fix Try Selector in Mapped Tasks also on Index 0 (#43590)
* Fix Try Selector in Mapped Tasks also on Index 0
* 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`);
}