fix: handle collective multiple host on destinationCalendar (#10967)
This commit is contained in:
1 parent
500bfb4d82
commit
c4e5d168a5
22 files changed
+371
-219
No files matched your search
@@ -85,8 +85,9 @@ export const BrokenIntegrationEmail = (
|
||||
|
||||
if (type === "calendar") {
|
||||
// The calendar name is stored as name_calendar
|
||||
let calendar = calEvent.destinationCalendar
|
||||
? calEvent.destinationCalendar?.integration.split("_")
|
||||
const [mainHostDestinationCalendar] = calEvent.destinationCalendar ?? [];
|
||||
let calendar = mainHostDestinationCalendar
|
||||
? mainHostDestinationCalendar?.integration.split("_")
|
||||
: "calendar";
|
||||
|
||||
if (Array.isArray(calendar)) {
|
||||
|
||||
Reference in new issue
Block a user