Skip to content

Commit

Permalink
prevent out of index error in getDagRunLabel function (#43388)
Browse files Browse the repository at this point in the history
  • Loading branch information
romsharon98 authored Oct 26, 2024
1 parent 53772e7 commit fbc1c2b
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 fbc1c2b

Please sign in to comment.