Getting the following error:
Uncaught TypeError: Cannot read property 'date' of undefined
in the push call here:
getEventsRequestResponse: function (event) {
var events = event.detail.response.items;
for (var i = 0; i < events.length; i++) {
var e = events[i];
this.push('events', new Event(e.summary, (e.start.date != null ? e.start.date : e.start.dateTime), event.detail.response.summary, e.htmlLink));
}
if (this.calendarIndex < this.calendars.length) {
this.fireGetEventsRequest();
} else {
this.events.sort(__compareEvents);
this.events = this.events.slice();
this.$.eventsLocalstorage.save();
this.lastUpdate = moment().unix();
this.loading = false;
}
},
The calendar event looks like this (XXX added)
etag: ""XXX""
id: "XXX"
kind: "calendar#event"
originalStartTime: Object
recurringEventId: "XXX"
status: "cancelled"
__proto__: Object
Apparently, cancelled events are still hanging around and they don't have a start property.
Symptoms are the spinner doesn't hide on the calendar and the Bookmarks never get processed.