fix: disable guest is not updating onchange (#20340)
This commit is contained in:
1 parent
3ecc9319c7
commit
7b9dabfa17
1 file changed
+2
@@ -161,6 +161,7 @@ export const updateHandler = async ({ ctx, input }: UpdateOptions) => {
|
||||
}
|
||||
|
||||
const teamId = input.teamId || eventType.team?.id;
|
||||
const guestsField = bookingFields?.find((field) => field.name === "guests");
|
||||
|
||||
ensureUniqueBookingFields(bookingFields);
|
||||
ensureEmailOrPhoneNumberIsPresent(bookingFields);
|
||||
@@ -183,6 +184,7 @@ export const updateHandler = async ({ ctx, input }: UpdateOptions) => {
|
||||
rest.rrSegmentQueryValue === null ? Prisma.DbNull : (rest.rrSegmentQueryValue as Prisma.InputJsonValue),
|
||||
metadata: rest.metadata === null ? Prisma.DbNull : (rest.metadata as Prisma.InputJsonObject),
|
||||
eventTypeColor: eventTypeColor === null ? Prisma.DbNull : (eventTypeColor as Prisma.InputJsonObject),
|
||||
disableGuests: guestsField?.hidden ?? false,
|
||||
};
|
||||
data.locations = locations ?? undefined;
|
||||
if (periodType) {
|
||||
|
||||
Reference in new issue
Block a user