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
(cherry picked from commit fbc1c2b)
  • Loading branch information
romsharon98 committed Oct 26, 2024
1 parent 9a868e0 commit 969dddb
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 969dddb

Please sign in to comment.