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

potiuk 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 482469463e7 Add condition to check dag version is undefined or not 
(#48478)
482469463e7 is described below

commit 482469463e75f75e0d0f3f92668a84a6c6141097
Author: Purna Chander <[email protected]>
AuthorDate: Mon Mar 31 07:54:38 2025 +0530

    Add condition to check dag version is undefined or not (#48478)
    
    * Add condition to check dag version as undefined
    
    Added a condition to check if dag version is undefined
    If version is undefined making it as empty else with the dag version 
similar to Dag/Header.tsx#L84-87
    
    * Pre commit check failure for Update TaskInstances.tsx
    
    * Prettier syntax fix TaskInstances.tsx
    
    * Trial end space removal TaskInstances.tsx
---
 airflow-core/src/airflow/ui/src/pages/TaskInstances/TaskInstances.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/airflow-core/src/airflow/ui/src/pages/TaskInstances/TaskInstances.tsx 
b/airflow-core/src/airflow/ui/src/pages/TaskInstances/TaskInstances.tsx
index a6fc15f60d4..a176678bab8 100644
--- a/airflow-core/src/airflow/ui/src/pages/TaskInstances/TaskInstances.tsx
+++ b/airflow-core/src/airflow/ui/src/pages/TaskInstances/TaskInstances.tsx
@@ -144,7 +144,8 @@ const taskInstanceColumns = (
   },
   {
     accessorKey: "dag_version",
-    cell: ({ row: { original } }) => 
`v${original.dag_version?.version_number}`,
+    cell: ({ row: { original } }) =>
+      original.dag_version?.version_number === undefined ? "" : 
`v${original.dag_version.version_number}`,
     enableSorting: false,
     header: "Dag Version",
   },

Reply via email to