update mtching mapper to handle empty schedules
This commit is contained in:
parent
5f8dd8b4a0
commit
924547c316
|
@ -64,7 +64,7 @@ export class MatchingMapper
|
|||
toDate: entity.getProps().query.toDate,
|
||||
schedule: entity
|
||||
.getProps()
|
||||
.query.schedule.map((scheduleItem: ScheduleItem) => ({
|
||||
.query.schedule?.map((scheduleItem: ScheduleItem) => ({
|
||||
day: scheduleItem.day,
|
||||
time: scheduleItem.time,
|
||||
margin: scheduleItem.margin,
|
||||
|
|
Loading…
Reference in New Issue