@@ -126,7 +126,7 @@ export const CHANGE_RESERVATION_TIME_QUERY_FRAGMENT = gql`
126126 beginDate
127127 endDate
128128 }
129- reservationUnit {
129+ reservationUnits {
130130 id
131131 pk
132132 bufferTimeBefore
@@ -316,7 +316,7 @@ export function NewReservationModal({
316316
317317 const { recurringReservation, type } = reservationToCopy ?? { } ;
318318 const { pk : recurringReservationPk } = recurringReservation ?? { } ;
319- const reservationUnit = reservationToCopy ?. reservationUnit ?. [ 0 ] ;
319+ const reservationUnit = reservationToCopy ?. reservationUnits ?. [ 0 ] ;
320320
321321 // NOTE 0 => buffer disabled for this reservation, undefined => no buffers selected
322322 const bufferTimeBefore = reservationUnit ?. bufferTimeBefore ?? 0 ;
@@ -455,7 +455,7 @@ export function EditTimeModal({
455455 const startDateTime = new Date ( reservation . begin ) ;
456456 const endDateTime = new Date ( reservation . end ) ;
457457
458- const reservationUnit = reservation . reservationUnit ?. find ( ( ) => true ) ;
458+ const reservationUnit = reservation . reservationUnits ?. find ( ( ) => true ) ;
459459
460460 // NOTE 0 => buffer disabled for this reservation, undefined => no buffers selected
461461 const bufferTimeBefore =
@@ -525,7 +525,7 @@ export function EditTimeModal({
525525 < ErrorBoundary fallback = { < div > { t ( "errors.descriptive.unknown" ) } </ div > } >
526526 < DialogContent
527527 form = { form }
528- reservationUnitPk = { reservation . reservationUnit ?. [ 0 ] ?. pk ?? 0 }
528+ reservationUnitPk = { reservation . reservationUnits ?. [ 0 ] ?. pk ?? 0 }
529529 bufferTimeAfter = { bufferTimeAfter }
530530 bufferTimeBefore = { bufferTimeBefore }
531531 mutate = { changeTime }
0 commit comments