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

Commit e2b5c24

Browse files
committed
fix: disable the reservationUnit-filter for now until the API is updated
1 parent 679f653 commit e2b5c24

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

apps/admin-ui/src/spa/recurring-reservations/application-rounds/[id]/review/RejectedOccurrencesDataLoader.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ function RejectedOccurrencesDataLoader({
3737
unit: unitFilter.map(Number).filter(Number.isFinite)[0],
3838
reservationUnit: reservationUnitFilter
3939
.map(Number)
40+
// TODO: remove the [0], as this should be the entire array instead of single value
4041
.filter(Number.isFinite)[0],
4142
orderBy: transformOrderBy(orderBy),
4243
textSearch: nameFilter,
@@ -125,6 +126,7 @@ function transformOrderBy(
125126

126127
export default RejectedOccurrencesDataLoader;
127128

129+
// TODO: $reservationUnit: Int should be $reservationUnit: [Int] - fix once the API is updated
128130
export const REJECTED_OCCURRENCES_QUERY = gql`
129131
query RejectedOccurrences(
130132
$applicationRound: Int

apps/admin-ui/src/spa/recurring-reservations/application-rounds/[id]/review/Review.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ export function Review({
365365
<Filters
366366
units={unitPks}
367367
reservationUnits={reservationUnitOptions}
368-
enableReservationUnit
368+
// enableReservationUnit TODO: enable this when the API is updated
369369
statusOption="eventShort"
370370
/>
371371
<RejectedOccurrencesDataLoader

0 commit comments

Comments
 (0)