This is an automated email from the ASF dual-hosted git repository.
pierrejeambrun 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 92255b513f7 fix(ui): guard against null/undefined dates in Gantt chart
to prevent RangeError (#64031)
92255b513f7 is described below
commit 92255b513f724bde79ccf5c97451c7ce3425d6c0
Author: Idris Akorede Ibrahim <[email protected]>
AuthorDate: Mon Mar 30 16:32:28 2026 +0100
fix(ui): guard against null/undefined dates in Gantt chart to prevent
RangeError (#64031)
* fix(ui): guard against null/undefined dates in Gantt chart to prevent
RangeError
Closes: #63954
* Fix strict-boolean-expressions lint error in Gantt utils
---
airflow-core/src/airflow/ui/src/layouts/Details/Gantt/utils.ts | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/airflow-core/src/airflow/ui/src/layouts/Details/Gantt/utils.ts
b/airflow-core/src/airflow/ui/src/layouts/Details/Gantt/utils.ts
index b2a54fa7d7e..22df4eb28cf 100644
--- a/airflow-core/src/airflow/ui/src/layouts/Details/Gantt/utils.ts
+++ b/airflow-core/src/airflow/ui/src/layouts/Details/Gantt/utils.ts
@@ -124,7 +124,10 @@ export const transformGanttData = ({
.filter((tryInstance) => tryInstance.start_date !== null)
.map((tryInstance) => {
const hasTaskRunning = isStatePending(tryInstance.state);
- const endTime = hasTaskRunning ? dayjs().toISOString() :
tryInstance.end_date;
+ const endTime =
+ hasTaskRunning || tryInstance.end_date === null
+ ? dayjs().toISOString()
+ : tryInstance.end_date;
return {
isGroup: false,