Skip to content

Commit

Permalink
Fix Try Selector in Mapped Tasks also on Index 0 (#43590) Backport (#…
Browse files Browse the repository at this point in the history
…43591)

* Fix Try Selector in Mapped Tasks also on Index 0

(cherry picked from commit 1c3d555)

* Review Feedback, direct commit

Co-authored-by: Brent Bovenzi <brent.bovenzi@gmail.com>

---------

Co-authored-by: Brent Bovenzi <brent.bovenzi@gmail.com>
  • Loading branch information
jscheffl and bbovenzi authored Nov 1, 2024
1 parent 38cba7a commit 8269e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/www/static/js/api/useTIHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
}

Expand Down

0 comments on commit 8269e28

Please sign in to comment.