Show proper default destination calendar (#7644)
* Make destination calendar immutable * Add comment --------- Co-authored-by: Omar López <zomars@me.com>pull/8034/head
parent
04fb7e07b4
commit
8f8ed4d80d
|
@ -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.primaryEmail = primary.email;
|
||||||
destinationCalendar.integrationTitle = integration.title;
|
destinationCalendar.integrationTitle = integration.title;
|
||||||
|
destinationCalendar = Object.freeze(destinationCalendar);
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue