Skip to content

Commit

Permalink
Fix details tab not showing when using dynamic task mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
shohamy7 committed Jan 1, 2024
1 parent eecb479 commit faeb2e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion airflow/www/static/js/dag/details/index.tsx
Expand Up @@ -153,6 +153,7 @@ const Details = ({
!isGroup &&
!isMappedTaskSummary
);
const shouldShowDetailsTab = taskId && runId;

const [searchParams, setSearchParams] = useSearchParams();
const tab = searchParams.get(TAB_PARAM) || undefined;
Expand Down Expand Up @@ -301,7 +302,7 @@ const Details = ({
<TabPanel height="100%">
{isDag && <DagContent />}
{isDagRun && <DagRunContent runId={runId} />}
{isTaskInstance && (
{shouldShowDetailsTab && (
<>
<BackToTaskSummary
isMapIndexDefined={mapIndex !== undefined && mapIndex > -1}
Expand Down

0 comments on commit faeb2e9

Please sign in to comment.