fix: Blank state wouldn't set 'schedule'; resulting toggle had no effect (#11335)

This commit is contained in:
Alex van Andel authored and GitHub committed 2023-09-27 11:26:55 +02:00
1 parent 8a413a97b4
commit ec4e2f5996
4 files changed
+38 -14

No files matched your search

@@ -161,7 +161,14 @@ export async function getEventType(
metadata: true,
schedule: {
select: {
availability: true,
availability: {
select: {
date: true,
startTime: true,
endTime: true,
days: true,
},
},
timeZone: true,
},
},
@@ -192,6 +199,7 @@ export async function getEventType(
},
},
});
if (!eventType) {
return null;
}