Skip to content

Commit

Permalink
prevent out of index error in getDagRunLabel function (#43388) (#43404)
Browse files Browse the repository at this point in the history
(cherry picked from commit 4652fed)
  • Loading branch information
romsharon98 authored and utkarsharma2 committed Oct 28, 2024
1 parent 65bcce2 commit 6227911
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 6227911

Please sign in to comment.