fix error when updating event type availability (#9428)
Co-authored-by: CarinaWolli <wollencarina@gmail.com>
This commit is contained in:
co-authored by
CarinaWolli
parent
ca47a589ba
commit
7a71a5ddd4
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user