Skip to content

Commit

Permalink
Revert "add the toggle to each search so only relevant units are show…
Browse files Browse the repository at this point in the history
…n in filter"

This reverts commit 297b161.
  • Loading branch information
joonatank committed May 21, 2024
1 parent 297b161 commit 18ec194
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions apps/ui/modules/queries/params.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,11 @@ export const SEARCH_FORM_PARAMS_UNIT = gql`
query SearchFormParamsUnit(
$publishedReservationUnits: Boolean
$ownReservations: Boolean
$onlyDirectBookable: Boolean
$onlySeasonalBookable: Boolean
$orderBy: [UnitOrderingChoices]
) {
units(
publishedReservationUnits: $publishedReservationUnits
ownReservations: $ownReservations
onlyDirectBookable: $onlyDirectBookable
onlySeasonalBookable: $onlySeasonalBookable
orderBy: $orderBy
) {
edges {
Expand Down
1 change: 0 additions & 1 deletion apps/ui/pages/search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ export async function getServerSideProps(ctx: GetServerSidePropsContext) {
query: SEARCH_FORM_PARAMS_UNIT,
variables: {
publishedReservationUnits: true,
onlySeasonalBookable: true,
},
});

Expand Down
1 change: 0 additions & 1 deletion apps/ui/pages/search/single.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ export async function getServerSideProps(ctx: GetServerSidePropsContext) {
query: SEARCH_FORM_PARAMS_UNIT,
variables: {
publishedReservationUnits: true,
onlyDirectBookable: true,
},
});

Expand Down

0 comments on commit 18ec194

Please sign in to comment.