Skip to content

Commit

Permalink
Show newest application cycle first in edit club view (#721)
Browse files Browse the repository at this point in the history
  • Loading branch information
Clue88 authored Sep 10, 2024
1 parent 1a5454f commit c62603f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/components/ClubEditPage/ApplicationsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,8 @@ export default function ApplicationsPage({
if (applications.length !== 0) {
setApplications(applications)
setCurrentApplication({
...applications[0],
name: format_app_name(applications[0]),
...applications[applications.length - 1],
name: format_app_name(applications[applications.length - 1]),
})
}
})
Expand Down Expand Up @@ -532,7 +532,7 @@ export default function ApplicationsPage({
CSV.
</Text>
<Select
options={applications.map((application) => {
options={applications.toReversed().map((application) => {
return {
...application,
value: application.id,
Expand Down

0 comments on commit c62603f

Please sign in to comment.