Skip to content

Commit

Permalink
prevent out of index error in getDagRunLabel function (apache#43388)
Browse files Browse the repository at this point in the history
  • Loading branch information
romsharon98 authored and ellisms committed Nov 13, 2024
1 parent d9bd24a commit e2321f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/www/static/js/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ interface RunLabelProps {
const getDagRunLabel = ({
dagRun,
ordering = ["executionDate"],
}: RunLabelProps) => dagRun[ordering[0]] ?? dagRun[ordering[1]];
}: RunLabelProps) => dagRun[ordering[0]];

const getStatusBackgroundColor = (color: string, hasNote: boolean) =>
hasNote
Expand Down

0 comments on commit e2321f3

Please sign in to comment.