Skip to content

Commit

Permalink
Remove unnecessary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
shohamy7 committed Jan 2, 2024
1 parent e7677a0 commit 9da6e3e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions airflow/www/static/js/dag/details/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ const Details = ({
!isGroup &&
!isMappedTaskSummary
);
const shouldShowDetailsTab = taskId && runId;

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

0 comments on commit 9da6e3e

Please sign in to comment.