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

bbovenzi pushed a commit to branch v3-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v3-1-test by this push:
     new 8e1c5191a61 [v3-1-test] 56058: Validating latestRun before accessing 
its properties (#56303) (#56488)
8e1c5191a61 is described below

commit 8e1c5191a6188febe1196b316ec6775fab8a6303
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Oct 9 14:15:53 2025 -0400

    [v3-1-test] 56058: Validating latestRun before accessing its properties 
(#56303) (#56488)
    
    * 56058: Checking for latestRun before invoking isStatePending
    
    * Fixed formatting
    
    ---------
    (cherry picked from commit 6821ad11106f3790a44a265f138d7d2155b29093)
    
    Co-authored-by: Vivek Nanda <[email protected]>
    Co-authored-by: Vivek Nanda <[email protected]>
---
 airflow-core/src/airflow/ui/src/pages/Dag/Dag.tsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/airflow-core/src/airflow/ui/src/pages/Dag/Dag.tsx 
b/airflow-core/src/airflow/ui/src/pages/Dag/Dag.tsx
index ffcc37b4fb3..efd17cdecd0 100644
--- a/airflow-core/src/airflow/ui/src/pages/Dag/Dag.tsx
+++ b/airflow-core/src/airflow/ui/src/pages/Dag/Dag.tsx
@@ -108,7 +108,9 @@ export const Dag = () => {
       <DetailsLayout error={error ?? runsError} isLoading={isLoading || 
isLoadingRuns} tabs={displayTabs}>
         <Header
           dag={dag}
-          isRefreshing={Boolean(isStatePending(latestRun?.state) && 
Boolean(refetchInterval))}
+          isRefreshing={
+            latestRun ? Boolean(isStatePending(latestRun.state) && 
Boolean(refetchInterval)) : false
+          }
           latestRunInfo={latestRun ?? undefined}
         />
       </DetailsLayout>

Reply via email to