Skip to content

Commit

Permalink
fix group/mapped details and select task node if no run
Browse files Browse the repository at this point in the history
  • Loading branch information
bbovenzi committed Jan 8, 2024
1 parent 8156faa commit 6273168
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion airflow/www/static/js/dag/details/graph/utils.ts
Expand Up @@ -60,7 +60,7 @@ export const flattenNodes = ({
if (!node.id.endsWith("join_id") && selected.runId) {
instance = group?.instances.find((ti) => ti.runId === selected.runId);
}
const isSelected = node.id === selected.taskId && !!instance;
const isSelected = node.id === selected.taskId;
const isActive =
instance && hoveredTaskState !== undefined
? hoveredTaskState === instance.state
Expand Down
2 changes: 1 addition & 1 deletion airflow/www/static/js/dag/details/index.tsx
Expand Up @@ -297,7 +297,7 @@ const Details = ({
<TabPanel height="100%">
{isDag && <DagContent />}
{isDagRun && <DagRunContent runId={runId} />}
{isTaskInstance && (
{!!taskId && !!runId && (
<>
<BackToTaskSummary
isMapIndexDefined={mapIndex !== undefined && mapIndex > -1}
Expand Down

0 comments on commit 6273168

Please sign in to comment.