From fbc1c2bd16c1ac12071288096bacc39907fb5a31 Mon Sep 17 00:00:00 2001 From: rom sharon <33751805+romsharon98@users.noreply.github.com> Date: Sun, 27 Oct 2024 00:18:59 +0300 Subject: [PATCH] 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 87428ce8363d1..8bef31a8582a9 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