From 7a71a5ddd4b3eeb4896c956ce3e571aefaca111c Mon Sep 17 00:00:00 2001 From: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com> Date: Fri, 9 Jun 2023 12:19:49 +0200 Subject: [PATCH] fix error when updating event type availability (#9428) Co-authored-by: CarinaWolli --- apps/web/pages/event-types/[type]/index.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/web/pages/event-types/[type]/index.tsx b/apps/web/pages/event-types/[type]/index.tsx index 649fa67a81..62725e7a71 100644 --- a/apps/web/pages/event-types/[type]/index.tsx +++ b/apps/web/pages/event-types/[type]/index.tsx @@ -372,8 +372,9 @@ const EventTypePage = (props: EventTypeSetupProps) => { throw new Error(t("seats_and_no_show_fee_error")); } + const { availability, ...rest } = input; updateMutation.mutate({ - ...input, + ...rest, locations, recurringEvent, periodStartDate: periodDates.startDate, @@ -453,9 +454,9 @@ const EventTypePage = (props: EventTypeSetupProps) => { } } } - + const { availability, ...rest } = input; updateMutation.mutate({ - ...input, + ...rest, locations, recurringEvent, periodStartDate: periodDates.startDate,