This is an automated email from the ASF dual-hosted git repository.

rom pushed a commit to branch v2-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v2-10-test by this push:
     new 4652fed1c64 prevent out of index error in getDagRunLabel function 
(#43388) (#43404)
4652fed1c64 is described below

commit 4652fed1c64136b4e8f6f85ca46f7b9f92ab5caf
Author: rom sharon <[email protected]>
AuthorDate: Sun Oct 27 09:40:28 2024 +0200

    prevent out of index error in getDagRunLabel function (#43388) (#43404)
---
 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

Reply via email to