MOBILE-3320 calendar: Fix go to activity button not appearing

main
Dani Palou 2021-07-06 08:37:52 +02:00
parent 4a48996ba8
commit ccd8f4829e
1 changed files with 3 additions and 14 deletions

View File

@ -164,23 +164,12 @@ export class AddonCalendarHelperProvider {
formatEventData(event: AddonCalendarEvent | AddonCalendarEventBase | AddonCalendarGetEventsEvent): AddonCalendarEventToDisplay {
const eventFormatted: AddonCalendarEventToDisplay = {
id: event.id!,
name: event.name,
eventtype: event.eventtype,
categoryid: event.categoryid,
groupid: event.groupid,
description: event.description,
location: 'location' in event? event.location : undefined,
timestart: event.timestart,
timeduration: event.timeduration,
eventcount: 'eventcount' in event? event.eventcount || 0 : 0,
...event,
location: 'location' in event ? event.location : undefined,
eventcount: 'eventcount' in event ? event.eventcount || 0 : 0,
repeatid: event.repeatid || 0,
// repeateditall: event.repeateditall,
userid: event.userid,
timemodified: event.timemodified,
eventIcon: this.getEventIcon(event.eventtype),
formattedType: AddonCalendar.getEventType(event),
modulename: event.modulename,
format: 1,
visible: 1,
offline: false,