diff --git a/airflow-core/src/airflow/ui/src/pages/XCom/XCom.tsx b/airflow-core/src/airflow/ui/src/pages/XCom/XCom.tsx index cecc75f7bbbfe..da6582398cfc7 100644 --- a/airflow-core/src/airflow/ui/src/pages/XCom/XCom.tsx +++ b/airflow-core/src/airflow/ui/src/pages/XCom/XCom.tsx @@ -49,63 +49,72 @@ const { }: SearchParamsKeysType = SearchParamsKeys; type ColumnsProps = { + readonly isTaskInstancePage: boolean; readonly open: boolean; readonly translate: (key: string) => string; }; -const getColumns = ({ open, translate }: ColumnsProps): Array> => [ +const getColumns = ({ + isTaskInstancePage, + open, + translate, +}: ColumnsProps): Array> => [ { accessorKey: "key", header: translate("xcom.columns.key"), }, - { - accessorKey: "dag_id", - cell: ({ row: { original } }) => ( - - {original.dag_display_name} - - ), - header: translate("xcom.columns.dag"), - }, - { - accessorKey: "run_id", - cell: ({ row: { original } }: { row: { original: XComResponse } }) => ( - - - - ), - header: translate("common:dagRunId"), - }, - { - accessorKey: "run_after", - cell: ({ row: { original } }: { row: { original: XComResponse } }) => ( - - - ), - header: translate("common:dagRun.runAfter"), - }, - { - accessorKey: "task_display_name", - cell: ({ row: { original } }: { row: { original: XComResponse } }) => ( - - - - ), - header: translate("common:task_one"), - }, - { - accessorKey: "map_index", - header: translate("common:mapIndex"), - }, + ...(isTaskInstancePage + ? [] + : [ + { + accessorKey: "dag_id", + cell: ({ row: { original } }: { row: { original: XComResponse } }) => ( + + {original.dag_display_name} + + ), + header: translate("xcom.columns.dag"), + }, + { + accessorKey: "run_id", + cell: ({ row: { original } }: { row: { original: XComResponse } }) => ( + + + + ), + header: translate("common:dagRunId"), + }, + { + accessorKey: "run_after", + cell: ({ row: { original } }: { row: { original: XComResponse } }) => ( + + + ), + header: translate("common:dagRun.runAfter"), + }, + { + accessorKey: "task_display_name", + cell: ({ row: { original } }: { row: { original: XComResponse } }) => ( + + + + ), + header: translate("common:task_one"), + }, + { + accessorKey: "map_index", + header: translate("common:mapIndex"), + }, + ]), { accessorKey: "timestamp", cell: ({ row: { original } }) =>