fix: cal.cache not working (#21044)
* fix: cal.cache not working * Thanks mrge
This commit is contained in:
1 parent
c52bbc4be3
commit
55b066c475
2 files changed
+5
-5
No files matched your search
@@ -52,7 +52,7 @@ export const useSchedule = ({
|
||||
: null;
|
||||
const skipContactOwner = searchParams ? searchParams.get("cal.skipContactOwner") === "true" : false;
|
||||
const _cacheParam = searchParams?.get("cal.cache");
|
||||
const shouldServeCache = _cacheParam ? _cacheParam === "true" : undefined;
|
||||
const _shouldServeCache = _cacheParam ? _cacheParam === "true" : undefined;
|
||||
const utils = trpc.useUtils();
|
||||
const routingFormResponseIdParam = searchParams?.get("cal.routingFormResponseId");
|
||||
const email = searchParams?.get("email");
|
||||
@@ -80,7 +80,7 @@ export const useSchedule = ({
|
||||
teamMemberEmail,
|
||||
routedTeamMemberIds,
|
||||
skipContactOwner,
|
||||
shouldServeCache,
|
||||
_shouldServeCache,
|
||||
routingFormResponseId,
|
||||
email,
|
||||
};
|
||||
|
||||
@@ -278,7 +278,7 @@ export const BookerPlatformWrapper = (
|
||||
|
||||
const [routingParams, setRoutingParams] = useState<{
|
||||
routedTeamMemberIds?: number[];
|
||||
shouldServeCache?: boolean;
|
||||
_shouldServeCache?: boolean;
|
||||
skipContactOwner?: boolean;
|
||||
isBookingDryRun?: boolean;
|
||||
}>({});
|
||||
@@ -292,14 +292,14 @@ export const BookerPlatformWrapper = (
|
||||
const skipContactOwner = searchParams.get("cal.skipContactOwner") === "true";
|
||||
|
||||
const _cacheParam = searchParams?.get("cal.cache");
|
||||
const shouldServeCache = _cacheParam ? _cacheParam === "true" : undefined;
|
||||
const _shouldServeCache = _cacheParam ? _cacheParam === "true" : undefined;
|
||||
const isBookingDryRun =
|
||||
searchParams?.get("cal.isBookingDryRun")?.toLowerCase() === "true" ||
|
||||
searchParams?.get("cal.sandbox")?.toLowerCase() === "true";
|
||||
setRoutingParams({
|
||||
...(skipContactOwner ? { skipContactOwner } : {}),
|
||||
...(routedTeamMemberIds ? { routedTeamMemberIds } : {}),
|
||||
...(shouldServeCache ? { shouldServeCache } : {}),
|
||||
...(_shouldServeCache ? { _shouldServeCache } : {}),
|
||||
...(isBookingDryRun ? { isBookingDryRun } : {}),
|
||||
});
|
||||
}, [routingFormSearchParams]);
|
||||
|
||||
Reference in new issue
Block a user