Skip to content
This repository has been archived by the owner on Feb 10, 2025. It is now read-only.

Commit

Permalink
fix: order search form unit options in alphabetical order
Browse files Browse the repository at this point in the history
  • Loading branch information
vincit-matu authored and joonatank committed Feb 6, 2025
1 parent 9597ad0 commit b286674
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/ui/modules/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ export async function getSearchOptions(
query: SearchFormParamsUnitDocument,
variables: {
publishedReservationUnits: true,
orderBy: UnitOrderingChoices.NameFiAsc,
...(page === "direct" ? { onlyDirectBookable: true } : {}),
...(page === "seasonal" ? { onlySeasonalBookable: true } : {}),
},
Expand Down

0 comments on commit b286674

Please sign in to comment.