You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by bb...@apache.org on 2025/10/08 18:27:28 UTC
(airflow) branch main updated: 56058: Validating latestRun before accessing its properties (#56303)
This is an automated email from the ASF dual-hosted git repository.
bbovenzi 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 6821ad11106 56058: Validating latestRun before accessing its properties (#56303)
6821ad11106 is described below
commit 6821ad11106f3790a44a265f138d7d2155b29093
Author: Vivek Nanda <vi...@yahoo.com>
AuthorDate: Wed Oct 8 23:57:20 2025 +0530
56058: Validating latestRun before accessing its properties (#56303)
* 56058: Checking for latestRun before invoking isStatePending
* Fixed formatting
---------
Co-authored-by: Vivek Nanda <vn...@cloudera.com>
---
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 cd347890748..c7bb74e6835 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>