This is an automated email from the ASF dual-hosted git repository.
rom pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new fbc1c2bd16c prevent out of index error in getDagRunLabel function
(#43388)
fbc1c2bd16c is described below
commit fbc1c2bd16c1ac12071288096bacc39907fb5a31
Author: rom sharon <[email protected]>
AuthorDate: Sun Oct 27 00:18:59 2024 +0300
prevent out of index error in getDagRunLabel function (#43388)
---
airflow/www/static/js/utils/index.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/airflow/www/static/js/utils/index.ts
b/airflow/www/static/js/utils/index.ts
index 87428ce8363..8bef31a8582 100644
--- a/airflow/www/static/js/utils/index.ts
+++ b/airflow/www/static/js/utils/index.ts
@@ -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