Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for item.originalStartTime being undefined #146

Closed
wants to merge 1 commit into from

Conversation

flying-sheep
Copy link

@flying-sheep flying-sheep commented Aug 5, 2020

I sometimes get this otherwise:

TypeError: Cannot read property 'dateTime' of undefined
    at [unknown function](Helpers:493:44)
    at processEventInstance(Helpers:492:45)
    at startSync(Code:139:7)

in

GAS-ICS-Sync/Helpers.gs

Lines 492 to 497 in 763f219

var eventInstanceToPatch = calendarEvents.filter(function(item){
var origStart = item.originalStartTime.dateTime || item.originalStartTime.date;
var instanceStart = new ICAL.Time.fromString(origStart);
return (instanceStart.compare(recIDStart) == 0);
});

Copy link

@davideworsham davideworsham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had the same error and this resolved it.

@derekantrican
Copy link
Owner

derekantrican commented Aug 18, 2020

@flying-sheep Thank you for the PR. Did you happen to try @jonas0b1011001 's "DEV" version linked here?

(@davideworsham - same question)

Some people are responding saying they had success with that so I'll have to figure out which solution we want (or both)

@derekantrican
Copy link
Owner

@flying-sheep I haven't heard back from you and I think #151 will solve this so I'm going to close this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants