Fixes issues with video location links from apps (#3760)

* fix issue with video apps link not saved as location

* use link as location for ping.gg

* fix around link in availability page + allow breaking line for locations

* use find instead of filter to get the first item

Co-authored-by: Omar López <[email protected]>

Co-authored-by: CarinaWolli <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Omar López <[email protected]>
This commit is contained in:
authored and GitHub committed 2022-08-12 14:46:40 -06:00
1 parent d90a431dcc
commit 5e013d5864
3 files changed
+13 -6

No files matched your search

+4 -2
View File
@@ -172,7 +172,10 @@ export default class EventManager {
}
// Update the calendar event with the proper video call data
results.push(...(await this.updateAllCalendarEvents(evt, booking)));
const calendarReference = booking.references.find((reference) => reference.type.includes("_calendar"));
if (calendarReference) {
results.push(...(await this.updateAllCalendarEvents(evt, booking)));
}
const referencesToCreate = results.map((result) => {
return {
@@ -430,7 +433,6 @@ export default class EventManager {
try {
// Bookings should only have one calendar reference
calendarReference = booking.references.filter((reference) => reference.type.includes("_calendar"))[0];
if (!calendarReference) throw new Error("bookingRef");
const { uid: bookingRefUid, externalCalendarId: bookingExternalCalendarId } = calendarReference;