Fixing isssues usins AI

This commit is contained in:
Muluhabt
2026-07-22 16:42:07 +03:00
parent 87ebec8b51
commit 9782dd0fe3
3 changed files with 17 additions and 5 deletions

View File

@@ -472,7 +472,13 @@ export default function SeatsPage() {
// For package bookings both legs always use the same coach type — mirror the
// switch to the inbound schedule so the auto-assign fetches the right seatmap.
if (isPackageBooking && inboundSchedule) {
setInboundSchedule({ ...(inboundSchedule as any), ...updatedSchedule, id: inboundSchedule.id });
setInboundSchedule({
...(inboundSchedule as any),
...updatedSchedule,
id: inboundSchedule.id,
originStationId: (inboundSchedule as any).originStationId,
destinationStationId: (inboundSchedule as any).destinationStationId,
});
}
} else {
setSelectedSchedule(updatedSchedule);