fix is with transport

This commit is contained in:
Dobromir Popov
2024-02-23 20:16:15 +02:00
parent d51f6bfbba
commit e7d127f1ed
3 changed files with 11 additions and 4 deletions

View File

@ -217,7 +217,8 @@ export default function AvailabilityForm({ publisherId, existingItem, inline, on
publisherId: availability.publisherId,
startTime: startTime,
endTime: endTime,
// isWithTransportIn: slots[0].isWithTransport,
isWithTransportIn: group[0].isFirst && timeSlots[0].isWithTransport,
isWithTransportOut: group[group.length - 1].isLast && timeSlots[timeSlots.length - 1].isWithTransport,
// Add other necessary fields, like isWithTransport if applicable
};
});