Skip to content

Commit 4652fed

Browse files
authored
prevent out of index error in getDagRunLabel function (#43388) (#43404)
1 parent 9a868e0 commit 4652fed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

airflow/www/static/js/utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ interface RunLabelProps {
170170
const getDagRunLabel = ({
171171
dagRun,
172172
ordering = ["executionDate"],
173-
}: RunLabelProps) => dagRun[ordering[0]] ?? dagRun[ordering[1]];
173+
}: RunLabelProps) => dagRun[ordering[0]];
174174

175175
const getStatusBackgroundColor = (color: string, hasNote: boolean) =>
176176
hasNote

0 commit comments

Comments
 (0)