idrisakorede opened a new pull request, #64031:
URL: https://github.com/apache/airflow/pull/64031

   Fix Grid View crash (`RangeError: Invalid time value`) when viewing tasks in 
non-terminal states (scheduled, running) with "Show Gantt" enabled. This is a 
regression from 3.1.7 introduced by #61250.
   
   **Root cause:** `dayjs(value).toISOString()` is called on null/undefined 
date values for tasks that haven't completed yet.
   
   **Changes in `utils.ts`:**
   - Group/mapped task guard: `=== null` → falsy check (`!value`) to also catch 
`undefined`
   - Individual task tries: added `!tryInstance.end_date` fallback so null end 
dates use current time instead of crashing
   
   No test coverage or behavior changes beyond the null guard. Tasks with 
missing end dates now render a bar extending to "now" (consistent with running 
task behavior).
   
   closes: #63954
   
   ---
   ##### Was generative AI tooling used to co-author this PR?
   
   - [ ] Yes (please specify the tool below)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to