Skip to content

Commit

Permalink
Fix Try Selector in Mapped Tasks also on Index 0
Browse files Browse the repository at this point in the history
  • Loading branch information
jscheffl committed Nov 1, 2024
1 parent c4a0461 commit 1c3d555
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 (typeof mapIndex !== "undefined" && mapIndex > -1) {
tiHistoryUrl = tiHistoryUrl.replace("/tries", `/${mapIndex}/tries`);
}

Expand Down

0 comments on commit 1c3d555

Please sign in to comment.