From e2321f361fb61630ff5c54c5edba1acb14365618 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 87428ce8363d..8bef31a8582a 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