Skip to content

Commit

Permalink
Fix plan sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
czmj committed Jun 23, 2022
1 parent aeb601d commit a00f92a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/hpc-ftsadmin/src/app/components/flows-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type HeaderId =
| 'flow.amountUSD'
| 'source.organization.name'
| 'destination.organization.name'
| 'destination.plan.name'
| 'destination.planVersion.name'
| 'destination.location.name'
| 'destination.usageYear.year'
| 'details';
Expand Down Expand Up @@ -308,7 +308,7 @@ export default function FlowsTable(props: FlowsTableProps) {
))}
</TableCell>
);
case 'destination.plan.name':
case 'destination.planVersion.name':
return (
<TableCell data-test="flows-table-plans">
{row.plans?.length
Expand Down
2 changes: 1 addition & 1 deletion apps/hpc-ftsadmin/src/app/pages/flows-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default (props: Props) => {
label: 'destinationOrganization',
},
{
id: 'destination.plan.name',
id: 'destination.planVersion.name',
sortable: true,
label: 'destinationPlan',
},
Expand Down
2 changes: 1 addition & 1 deletion apps/hpc-ftsadmin/src/app/pages/pending-flows-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default (props: Props) => {
label: 'destinationOrganization',
},
{
id: 'destination.plan.name',
id: 'destination.planVersion.name',
sortable: true,
label: 'destinationPlan',
},
Expand Down

0 comments on commit a00f92a

Please sign in to comment.