fix: add null check for userSchedule.availability (#7053)
parent
5fcfbb2d90
commit
d6594dab0f
|
@ -231,7 +231,7 @@ export async function getUserAvailability(
|
|||
? { ...eventType?.schedule }
|
||||
: {
|
||||
...userSchedule,
|
||||
availability: userSchedule.availability.map((a) => ({
|
||||
availability: userSchedule?.availability.map((a) => ({
|
||||
...a,
|
||||
userId: currentUser.id,
|
||||
})),
|
||||
|
|
Loading…
Reference in New Issue