Skip to content

Commit

Permalink
Fix grid sort bug (apache#46182)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbovenzi authored Jan 28, 2025
1 parent 9b38579 commit 336089c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions airflow/ui/src/components/TaskTrySelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ export const TaskTrySelect = ({ onSelectTryNumber, selectedTryNumber, taskInstan
) => <StateBadge state={items[0]?.task_instance.state}>{items[0]?.value}</StateBadge>}
</Select.ValueText>
</Select.Trigger>
<Select.Content>
{tryOptions.items.reverse().map((option) => (
<Select.Content flexDirection="column-reverse">
{tryOptions.items.map((option) => (
<Select.Item item={option} key={option.value}>
<span>
{option.value}:
Expand Down
8 changes: 5 additions & 3 deletions airflow/ui/src/layouts/Details/Grid/Grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,11 @@ export const Grid = () => {
</>
)}
</Flex>
{runs.reverse().map((dr, index) => (
<Bar index={index} key={dr.dag_run_id} limit={limit} max={max} nodes={flatNodes} run={dr} />
))}
<Flex flexDirection="row-reverse">
{runs.map((dr, index) => (
<Bar index={index} key={dr.dag_run_id} limit={limit} max={max} nodes={flatNodes} run={dr} />
))}
</Flex>
<IconButton
aria-label={`+${OFFSET_CHANGE} newer dag runs`}
disabled={offset === 0}
Expand Down

0 comments on commit 336089c

Please sign in to comment.