Scheduling infrastructure for absolutely everyone.
Show proper default destination calendar (#7644)
Joe Au-Yeung8f8ed4d80dcd
diff --git a/packages/core/CalendarManager.ts b/packages/core/CalendarManager.tsindex 69eae44131e..241c8239d0f 100644--- a/packages/core/CalendarManager.ts+++ b/packages/core/CalendarManager.ts@@ -77,9 +77,11 @@ export const getConnectedCalendars = async (},};}- if (destinationCalendar) {+ // HACK https://github.com/calcom/cal.com/pull/7644/files#r1131508414+ if (destinationCalendar && !Object.isFrozen(destinationCalendar)) {destinationCalendar.primaryEmail = primary.email;destinationCalendar.integrationTitle = integration.title;+ destinationCalendar = Object.freeze(destinationCalendar);}return {