fix: rescheduling recurring events (#12567)
This commit is contained in:
1 parent
338756439f
commit
1c20bdcecf
4 files changed
+9
-6
No files matched your search
@@ -344,7 +344,7 @@ export const BookEventFormChild = ({
|
||||
hashedLink,
|
||||
};
|
||||
|
||||
if (eventQuery.data?.recurringEvent?.freq && recurringEventCount) {
|
||||
if (eventQuery.data?.recurringEvent?.freq && recurringEventCount && !rescheduleUid) {
|
||||
createRecurringBookingMutation.mutate(
|
||||
mapRecurringBookingToMutationInput(bookingInput, recurringEventCount)
|
||||
);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { Fragment } from "react";
|
||||
import React from "react";
|
||||
|
||||
import { useBookerStore } from "@calcom/features/bookings/Booker/store";
|
||||
import classNames from "@calcom/lib/classNames";
|
||||
import getPaymentAppData from "@calcom/lib/getPaymentAppData";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
@@ -110,6 +111,7 @@ export const EventMetaBlock = ({
|
||||
*/
|
||||
export const EventDetails = ({ event, blocks = defaultEventDetailsBlocks }: EventDetailsProps) => {
|
||||
const { t } = useLocale();
|
||||
const rescheduleUid = useBookerStore((state) => state.rescheduleUid);
|
||||
|
||||
return (
|
||||
<>
|
||||
@@ -144,7 +146,7 @@ export const EventDetails = ({ event, blocks = defaultEventDetailsBlocks }: Even
|
||||
);
|
||||
|
||||
case EventDetailBlocks.OCCURENCES:
|
||||
if (!event.recurringEvent) return null;
|
||||
if (!event.recurringEvent || rescheduleUid) return null;
|
||||
|
||||
return (
|
||||
<EventMetaBlock key={block} icon={RefreshCcw}>
|
||||
|
||||
Reference in new issue
Block a user