Skip to content

Commit

Permalink
catch undefined location
Browse files Browse the repository at this point in the history
  • Loading branch information
prototype99 committed Oct 18, 2021
1 parent e30f9d7 commit c454b8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _data/sources/googleCalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class googleCalendar {
this.name = name || "N/A";
// Converters
this.eventClass = event;
this.event = (event) => new this.eventClass(event.summary, event.htmlLink, event.location, this.removeHTML(event.description || ""), event.start.dateTime, event.end.dateTime || event.start.dateTime, null, null, null, null, this.name, this.link, this.name, false, this.chkOnline(event.location), ! this.chkOnline(event.location));
this.event = (event) => new this.eventClass(event.summary, event.htmlLink, event.location || "", this.removeHTML(event.description || ""), event.start.dateTime, event.end.dateTime || event.start.dateTime, null, null, null, null, this.name, this.link, this.name, false, this.chkOnline(event.location), ! this.chkOnline(event.location));
}

chkOnline(location) {
Expand Down

0 comments on commit c454b8b

Please sign in to comment.