Skip to content

Commit

Permalink
Fix Try Selector in Mapped Tasks also on Index 0 (#43590)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
jscheffl and bbovenzi authored Nov 1, 2024
1 parent bd74cf8 commit ccbf1da
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 ccbf1da

Please sign in to comment.