fix(client): keep the seat change clear of the sheet's held ref and of non-null assertions

Client lint was red: passing the ref-held reservation to bookingSeats added a react-hooks/refs warning in MTransportSheet, so the sheet now reads the seats from the legs it already has (seatsOfLegs). The new PDF test used a non-null assertion.
This commit is contained in:
Maurice
2026-11-21 15:45:04 +01:00
parent 7006891ce0
commit 49b9ffc77d
3 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -272,7 +272,7 @@ describe('downloadTripPDF', () => {
}),
}
await downloadTripPDF({ ...richArgs, reservations: [direct, stopover] })
const html = getIframe()!.srcdoc
const html = getIframe()?.srcdoc ?? ''
expect(html).toContain('Air Italia · AI123 · reservations.meta.seat 31A · CDG → FCO')
expect(html).toContain('Lufthansa · LH2 · reservations.meta.seat 14C · BER → HND')
expect(html).not.toContain('LH1 · reservations.meta.seat')