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